This commit is contained in:
2026-04-04 06:25:34 +02:00
parent 93e8a13765
commit 18ac682f98
10 changed files with 56 additions and 40 deletions
+10 -10
View File
@@ -2,6 +2,16 @@
[[ $- == *i* ]] || return
if type fish &>/dev/null; then
alias f="exec fish"
if [[ ${UY_ENABLE_FISH_AUTO_LOGIN:-0} == 1 ]] &&
[[ $(ps --no-header --pid=$PPID --format=comm) != "fish" && -z ${BASH_EXECUTION_STRING} && ${SHLVL} == 1 ]]; then
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=''
exec fish $LOGIN_OPTION
fi
fi
HISTCONTROL=ignoreboth
HISTSIZE=16384
HISTFILESIZE=32768
@@ -52,16 +62,6 @@ if [[ ${UY_USING_SSH_AGENT:-0} == 1 ]]; then
}
fi
if type fish &>/dev/null; then
alias f="exec fish"
if [[ ${UY_ENABLE_FISH_AUTO_LOGIN:-0} == 1 ]] &&
[[ $(ps --no-header --pid=$PPID --format=comm) != "fish" && -z ${BASH_EXECUTION_STRING} && ${SHLVL} == 1 ]]; then
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=''
exec fish $LOGIN_OPTION
fi
fi
if type starship &>/dev/null; then
eval $(starship init bash)
fi