aboutsummaryrefslogtreecommitdiff
path: root/dot_config
diff options
context:
space:
mode:
authorZam Kokott <zam.kokott@bwi.de>2026-06-05 10:18:38 +0000
committerZam Kokott <zam.kokott@bwi.de>2026-06-05 10:18:46 +0000
commit52369a36f5e05ebb950dc7da6016e24e5d1ffc85 (patch)
tree32792bd7b55ce9f18fcce91f397374ed902b1a35 /dot_config
parent8e50bb2f465eff7559e28292daca954878092c16 (diff)
delete fish
Diffstat (limited to 'dot_config')
-rw-r--r--dot_config/fish/config.fish.tmpl62
1 files changed, 62 insertions, 0 deletions
diff --git a/dot_config/fish/config.fish.tmpl b/dot_config/fish/config.fish.tmpl
new file mode 100644
index 0000000..30c8bc8
--- /dev/null
+++ b/dot_config/fish/config.fish.tmpl
@@ -0,0 +1,62 @@
+# 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
+if test -d ~/.local/bin
+ if not contains -- ~/.local/bin $PATH
+ set -p PATH ~/.local/bin
+ end
+end
+
+# Add depot_tools to PATH
+if test -d ~/Applications/depot_tools
+ if not contains -- ~/Applications/depot_tools $PATH
+ set -p PATH ~/Applications/depot_tools
+ end
+end
+
+# Fish command history
+function history
+ builtin history --show-time='%F %T '
+end
+
+# Copy DIR1 DIR2
+function copy
+ set count (count $argv | tr -d \n)
+ if test "$count" = 2; and test -d "$argv[1]"
+ set from (echo $argv[1] | trim-right /)
+ set to (echo $argv[2])
+ command cp -r $from $to
+ else
+ command cp $argv
+ end
+end
+
+set -U fish_complete_path $fish_complete_path /nix/var/nix/profiles/default/share/fish/vendor_completions.d
+set -Ux EDITOR nvim
+set -U fish_history_max 1000
+
+{{ if eq .chezmoi.hostname "ubuntu" -}}
+ fish_add_path /opt/nvim-linux-x86_64/bin ~/.cargo/bin/
+{{- end }}
+
+alias vim='nvim'
+alias cd='z'
+alias ls='eza --icons=always --color=always'
+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