mirror of
https://mau.dev/andreijiroh-dev/dotfiles.git
synced 2025-05-16 02:23:09 +00:00
chore(shellrc): update bashrc and profile to load up $GOPATH/bin
Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.xyz>
This commit is contained in:
parent
b7c40c5e5f
commit
0658bee1be
3 changed files with 24 additions and 40 deletions
|
@ -3,10 +3,10 @@
|
|||
# for examples
|
||||
|
||||
# If not running interactively, don't do anything
|
||||
#case $- in
|
||||
# *i*) ;;
|
||||
# *) return;;
|
||||
#esac
|
||||
case $- in
|
||||
*i*) ;;
|
||||
*) return;;
|
||||
esac
|
||||
|
||||
# don't put duplicate lines or lines starting with space in the history.
|
||||
# See bash(1) for more options
|
||||
|
@ -52,13 +52,18 @@ if [ -n "$force_color_prompt" ]; then
|
|||
fi
|
||||
|
||||
# If this is an xterm set the title to user@host:dir
|
||||
case "$TERM" in
|
||||
xterm*|rxvt*)
|
||||
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
if command -v oh-my-posh >>/dev/null && [[ $FF_USE_OHMYPOSH != "false" ]]; then
|
||||
eval "$(oh-my-posh init bash)"
|
||||
else
|
||||
if [[ $PROMPT_THEME == "disabled" ]]; then
|
||||
true
|
||||
elif [[ -f "$HOME/.config/bash/shell-prompts/${PROMPT_THEME}.bashrc" ]]; then
|
||||
# shellcheck disable=SC1090
|
||||
source "$HOME/.config/bash/shell-prompts/${PROMPT_THEME}.bashrc"
|
||||
else
|
||||
source "$HOME/.config/bash/shell-prompts/vern.bashrc"
|
||||
fi
|
||||
fi
|
||||
|
||||
# colored GCC warnings and errors
|
||||
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
||||
|
@ -82,3 +87,6 @@ if ! shopt -oq posix; then
|
|||
. /etc/bash_completion
|
||||
fi
|
||||
fi
|
||||
|
||||
[ -f "${HOME}/.config/bash/hosts/${HOSTNAME_BASH}.bashrc" ] \
|
||||
&& . "${HOME}/.config/bash/hosts/${HOSTNAME_BASH}.bashrc"
|
Loading…
Add table
Add a link
Reference in a new issue