From 111d116e03b4307f2bc7469fa0e6f5a8cc6643a3 Mon Sep 17 00:00:00 2001 From: pablu Date: Sun, 22 Mar 2026 18:32:41 +0100 Subject: Try out fish for now, change starship to use catppuccin --- dot_config/fish/config.fish | 49 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 dot_config/fish/config.fish (limited to 'dot_config/fish/config.fish') diff --git a/dot_config/fish/config.fish b/dot_config/fish/config.fish new file mode 100644 index 0000000..26ec776 --- /dev/null +++ b/dot_config/fish/config.fish @@ -0,0 +1,49 @@ +# source /usr/share/cachyos-fish-config/cachyos-config.fish + +function fish_greeting + fastfetch +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 -Ux EDITOR nvim +set -U fish_history_max 1000 + +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)' + +zoxide init fish | source +starship init fish | source -- cgit 1.3.1