shell: always launch zsh unless bash is explicitly launched

This commit is contained in:
PowerUser64 2024-09-17 23:14:59 -07:00
parent 706ed31198
commit 94edd4b09b
2 changed files with 4 additions and 2 deletions

View file

@ -40,6 +40,8 @@ alias ffmpeg='ffmpeg -hide_banner'
alias glow='glow -p' # force Glow to preview with `less` if not in vim alias glow='glow -p' # force Glow to preview with `less` if not in vim
alias juliai='julia -i ${XDG_CONFIG_HOME:-"$HOME/.config"}/julia/startup.jl' alias juliai='julia -i ${XDG_CONFIG_HOME:-"$HOME/.config"}/julia/startup.jl'
alias bash='LAUNCH_ZSH=false bash'
# I hate it when I get ghost script instead of git status # I hate it when I get ghost script instead of git status
alias gs='echo "you don'\''t $(tput sitm)really$(tput sgr0) want ghost script now, do you?"' alias gs='echo "you don'\''t $(tput sitm)really$(tput sgr0) want ghost script now, do you?"'
@ -126,7 +128,7 @@ alias \
dc='docker-compose' \ dc='docker-compose' \
occ='docker exec -u www-data nextcloud php occ --ansi' \ occ='docker exec -u www-data nextcloud php occ --ansi' \
# Nix # Nix
alias \ alias \
nsp='nix-shell -p' \ nsp='nix-shell -p' \
nx='$EDITOR /etc/nixos/systems/$HOST/default.nix' \ nx='$EDITOR /etc/nixos/systems/$HOST/default.nix' \

2
.zshrc
View file

@ -265,7 +265,7 @@ load_working_dir && cd - > /dev/null || true
# <<< # <<<
# <<< # <<<
export BASH_LAUNCH_ZSH=false export LAUNCH_ZSH="${STAY_ZSH:-true}"
# Optionally source another zshrc # Optionally source another zshrc
${SKIP_LOCAL_ZSHRC:-false} || careful_source "$SHELL_CONFIG_DIR/local/zshrc" ${SKIP_LOCAL_ZSHRC:-false} || careful_source "$SHELL_CONFIG_DIR/local/zshrc"