34 lines
762 B
Fish
34 lines
762 B
Fish
if status is-interactive
|
|
# Commands to run in interactive sessions can go here
|
|
end
|
|
|
|
function fish_greeting
|
|
echo ""
|
|
echo (set_color brred)"Koa~~"(set_color white) | awk '{ z = '$(tput cols)' - 5; y = int(z / 2); x = z - y; printf "%*s%s%*s\n", x, "", $0, y, ""; }'
|
|
echo ""
|
|
end
|
|
|
|
function fish_right_prompt
|
|
if test $status -ne 0
|
|
echo (set_color brred)":("(set_color white)
|
|
end
|
|
end
|
|
|
|
function ssh
|
|
if test $TERM = 'xterm-kitty'
|
|
kitten ssh $argv
|
|
else
|
|
ssh $argv
|
|
end
|
|
end
|
|
|
|
# starship init fish | source
|
|
|
|
# >>> conda initialize >>>
|
|
# !! Contents within this block are managed by 'conda init' !!
|
|
if test -f /opt/miniconda3/bin/conda
|
|
eval /opt/miniconda3/bin/conda "shell.fish" "hook" $argv | source
|
|
end
|
|
# <<< conda initialize <<<
|
|
|