From 4c454d463ad866acbea5e3d5b2a9ab28fac1aeaa Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Wed, 3 Sep 2025 11:51:25 +0200 Subject: [PATCH] fish: move setups to interactive shell --- .config/fish/config.fish | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 8e0c95bf3..72476660f 100755 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -6,24 +6,21 @@ function fish_prompt -d "Write out the prompt" (set_color $fish_color_cwd) (prompt_pwd) (set_color normal) end -if status is-interactive - # Commands to run in interactive sessions can go here +if status is-interactive # Commands to run in interactive sessions can go here + + # No greeting set fish_greeting -end + # Use starship + starship init fish | source + if test -f ~/.local/state/quickshell/user/generated/terminal/sequences.txt + cat ~/.local/state/quickshell/user/generated/terminal/sequences.txt + end -starship init fish | source -if test -f ~/.local/state/quickshell/user/generated/terminal/sequences.txt - cat ~/.local/state/quickshell/user/generated/terminal/sequences.txt -end - -alias pamcan pacman -alias ls 'eza --icons' -alias clear "printf '\033[2J\033[3J\033[1;1H'" -alias q 'qs -c ii' + # Aliases + alias pamcan pacman + alias ls 'eza --icons' + alias clear "printf '\033[2J\033[3J\033[1;1H'" + alias q 'qs -c ii' - -# function fish_prompt -# set_color cyan; echo (pwd) -# set_color green; echo '> ' -# end +end