mirror of
https://github.com/KiTTYsh/dotfiles.git
synced 2025-12-10 05:09:16 -05:00
Compare commits
3 Commits
b7b8e12755
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| b17760b54a | |||
| 1e547070f7 | |||
| 5149a04dfe |
@@ -1,9 +1,25 @@
|
|||||||
# Disable welcome message per https://www.nushell.sh/book/configuration.html#remove-welcome-message
|
# Disable welcome message per https://www.nushell.sh/book/configuration.html#remove-welcome-message
|
||||||
$env.config.show_banner = false
|
$env.config.show_banner = false
|
||||||
|
|
||||||
|
# Configure window title with SSH hostname prefix
|
||||||
|
$env.config.hooks.pre_prompt = [{
|
||||||
|
let title_prefix = if "SSH_CONNECTION" in $env {
|
||||||
|
$"[(sys host | get hostname)] "
|
||||||
|
} else {
|
||||||
|
""
|
||||||
|
}
|
||||||
|
|
||||||
|
print -n $"(ansi title)($title_prefix)(pwd | str replace $env.HOME "~")(ansi st)"
|
||||||
|
}]
|
||||||
|
|
||||||
# Set theme
|
# Set theme
|
||||||
source ($nu.default-config-dir | path join "themes/catppuccin/themes/catppuccin_mocha.nu")
|
source ($nu.default-config-dir | path join "themes/catppuccin/themes/catppuccin_mocha.nu")
|
||||||
|
|
||||||
|
# Varied completions
|
||||||
|
source ($nu.default-config-dir | path join "nu_scripts/custom-completions/docker/docker-completions.nu")
|
||||||
|
source ($nu.default-config-dir | path join "nu_scripts/custom-completions/git/git-completions.nu")
|
||||||
|
source ($nu.default-config-dir | path join "nu_scripts/custom-completions/nix/nix-completions.nu")
|
||||||
|
|
||||||
# Starship initialization per https://starship.rs/guide/
|
# Starship initialization per https://starship.rs/guide/
|
||||||
mkdir ($nu.data-dir | path join "vendor/autoload")
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
|
|||||||
@@ -8,12 +8,15 @@ $hostname\
|
|||||||
$username\
|
$username\
|
||||||
[ ](fg:peach bg:yellow)\
|
[ ](fg:peach bg:yellow)\
|
||||||
$shell\
|
$shell\
|
||||||
|
$shlvl\
|
||||||
[ ](fg:yellow bg:green)\
|
[ ](fg:yellow bg:green)\
|
||||||
[ ](fg:green bg:sapphire)\
|
[ ](fg:green bg:sapphire)\
|
||||||
$directory\
|
$directory\
|
||||||
[ ](fg:sapphire bg:lavender)\
|
[ ](fg:sapphire bg:lavender)\
|
||||||
$git_branch\
|
$git_branch\
|
||||||
|
$git_commit\
|
||||||
$git_status\
|
$git_status\
|
||||||
|
$git_state\
|
||||||
[ ](fg:lavender)\
|
[ ](fg:lavender)\
|
||||||
$cmd_duration\
|
$cmd_duration\
|
||||||
$character"""
|
$character"""
|
||||||
@@ -65,9 +68,17 @@ style = 'bg:yellow fg:crust'
|
|||||||
nu_indicator = ' '
|
nu_indicator = ' '
|
||||||
bash_indicator = " "
|
bash_indicator = " "
|
||||||
|
|
||||||
|
[shlvl]
|
||||||
|
disabled = false
|
||||||
|
symbol = ''
|
||||||
|
style = 'bg:yellow fg:crust'
|
||||||
|
format = '[$symbol$shlvl ]($style)'
|
||||||
|
|
||||||
[directory]
|
[directory]
|
||||||
style = "bg:sapphire fg:crust"
|
style = "bg:sapphire fg:crust"
|
||||||
format = "[$path ]($style)"
|
read_only_style = "bg:sapphire fg:crust"
|
||||||
|
read_only = " "
|
||||||
|
format = "[$path ]($style)[$read_only]($read_only_style)"
|
||||||
truncate_to_repo = false
|
truncate_to_repo = false
|
||||||
truncation_length = 3
|
truncation_length = 3
|
||||||
truncation_symbol = "…/"
|
truncation_symbol = "…/"
|
||||||
@@ -78,17 +89,37 @@ truncation_symbol = "…/"
|
|||||||
"Music" = " "
|
"Music" = " "
|
||||||
"Pictures" = " "
|
"Pictures" = " "
|
||||||
"Developer" = " "
|
"Developer" = " "
|
||||||
"repo" = " "
|
"repo" = " "
|
||||||
"work" = " "
|
"work" = " "
|
||||||
|
|
||||||
[git_branch]
|
[git_branch]
|
||||||
symbol = ""
|
symbol = ""
|
||||||
style = "bg:lavender fg:crust"
|
style = "bg:lavender fg:crust"
|
||||||
format = '[$symbol $branch ]($style)'
|
format = '[$symbol $branch ]($style)'
|
||||||
|
only_attached = true
|
||||||
|
|
||||||
|
[git_commit]
|
||||||
|
format = '[ $hash$tag]($style)'
|
||||||
|
tag_disabled = false
|
||||||
|
tag_symbol = ' '
|
||||||
|
style = 'bg:lavender fg:crust'
|
||||||
|
|
||||||
[git_status]
|
[git_status]
|
||||||
style = "bg:lavender"
|
style = "bg:lavender fg:crust"
|
||||||
format = '[[($all_status$ahead_behind )](fg:crust bg:lavender)]($style)'
|
format = '[ $all_status$ahead_behind]($style)'
|
||||||
|
untracked = ''
|
||||||
|
modified = ' '
|
||||||
|
|
||||||
|
|
||||||
|
[git_state]
|
||||||
|
rebase = ' '
|
||||||
|
merge = ' '
|
||||||
|
revert = ' '
|
||||||
|
cherry_pick = ' '
|
||||||
|
bisect = ' '
|
||||||
|
am = ' '
|
||||||
|
am_or_rebase = ' '
|
||||||
|
style = 'bg:lavender fg:crust'
|
||||||
|
|
||||||
[character]
|
[character]
|
||||||
disabled = false
|
disabled = false
|
||||||
|
|||||||
Reference in New Issue
Block a user