aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZam Kokott <zam.kokott@bwi.de>2026-04-02 12:39:21 +0000
committerZam Kokott <zam.kokott@bwi.de>2026-04-02 12:39:21 +0000
commit14e587afc697c501c5a122c05488d76d03b00a51 (patch)
treebb03a3d83ab3474088055bc09963ae85f2500f31
parent7cb96e5111e709faf8e477d3443d064c47ab5a49 (diff)
update to use fish with template
-rw-r--r--dot_config/fish/config.fish.tmpl (renamed from dot_config/fish/config.fish)11
1 files changed, 11 insertions, 0 deletions
diff --git a/dot_config/fish/config.fish b/dot_config/fish/config.fish.tmpl
index 6e83a73..284e9dd 100644
--- a/dot_config/fish/config.fish
+++ b/dot_config/fish/config.fish.tmpl
@@ -1,7 +1,13 @@
# source /usr/share/cachyos-fish-config/cachyos-config.fish
function fish_greeting
+ {{- if eq .chezmoi.hostname "ubuntu" }}
+ if test -z "$TMUX"
+ tmux new -As default
+ end
+ {{- else }}
fastfetch
+ {{- end }}
end
# Add ~/.local/bin to PATH
@@ -39,6 +45,10 @@ set -U fish_complete_path $fish_complete_path /nix/var/nix/profiles/default/shar
set -Ux EDITOR nvim
set -U fish_history_max 1000
+{{ if eq .chezmoi.hostname "ubuntu" }}
+ fish_add_path /opt/nvim-linux-x86_64/bin
+{{ end }}
+
alias vim='nvim'
alias cd='z'
alias ls='eza --icons=always --color=always'
@@ -46,6 +56,7 @@ alias untar='tar -zxvf '
alias grep='grep --color=auto'
alias cleanup='sudo pacman -Rns (pacman -Qtdq)'
+chezmoi completion fish | source
direnv hook fish | source
zoxide init fish | source
starship init fish | source