Move shell sourcing up

This commit is contained in:
fanyx 2024-02-21 13:55:22 +01:00
parent 2a9338a410
commit bf43ddb8e4
1 changed files with 14 additions and 4 deletions

View File

@ -27,7 +27,20 @@
# set PS1 from file
# USE ONLY AFTER GIT PROMPT
[[ -r ~/.ps1 ]] && . ~/.ps1
[[ -r ~/.ps1 ]] &&\
source ~/.ps1
#################################
# Optional source files
# BEGIN_KITTY_SHELL_INTEGRATION
[[ -n "$KITTY_INSTALLATION_DIR" ]] &&\
[[ -e "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash" ]] &&\
source "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"
# END_KITTY_SHELL_INTEGRATION
# Google CLI
[[ -r ~/.googlerc ]] && source ~/.googlerc
#################################
# don't put duplicate lines or lines starting with space in the history.
@ -58,6 +71,3 @@ command -v starship &>/dev/null && eval "$(starship init bash)"
export XBPS_DISTDIR="$HOME/git/void-packages"
export SVDIR="$HOME/sv"
# BEGIN_KITTY_SHELL_INTEGRATION
if test -n "$KITTY_INSTALLATION_DIR" -a -e "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; then source "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; fi
# END_KITTY_SHELL_INTEGRATION