From 14e587afc697c501c5a122c05488d76d03b00a51 Mon Sep 17 00:00:00 2001 From: Zam Kokott Date: Thu, 2 Apr 2026 12:39:21 +0000 Subject: [PATCH] update to use fish with template --- dot_config/fish/{config.fish => config.fish.tmpl} | 11 +++++++++++ 1 file changed, 11 insertions(+) rename dot_config/fish/{config.fish => config.fish.tmpl} (82%) diff --git a/dot_config/fish/config.fish b/dot_config/fish/config.fish.tmpl similarity index 82% rename from dot_config/fish/config.fish rename to 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