set bash as default shell
This commit is contained in:
parent
5569b6fe10
commit
cbe791ead3
7 changed files with 45 additions and 19 deletions
8
Configs/bash/.bashrc
Normal file
8
Configs/bash/.bashrc
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# ╭──────────────────────────────────────────────────────────╮
|
||||
# │ Auto drop into fish only on login │
|
||||
# ╰──────────────────────────────────────────────────────────╯
|
||||
|
||||
if [[ $(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
|
||||
Loading…
Add table
Add a link
Reference in a new issue