|
|
|
@ -29,7 +29,6 @@ HISTFILESIZE=2000
|
|
|
|
|
# update the values of LINES and COLUMNS.
|
|
|
|
|
shopt -s checkwinsize
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
|
# EDITOR
|
|
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
@ -43,6 +42,9 @@ export VISUAL=/usr/bin/vim
|
|
|
|
|
# PROMPT
|
|
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
if [ -f "/usr/bin/starship" ]; then
|
|
|
|
|
eval "$(starship init bash)"
|
|
|
|
|
else
|
|
|
|
|
# set a minimalist prompt
|
|
|
|
|
red='\[\e[0;31m\]' # Red
|
|
|
|
|
green='\[\e[0;32m\]' # Green
|
|
|
|
@ -67,6 +69,12 @@ fi
|
|
|
|
|
|
|
|
|
|
PS1="$PROMPT_USER_COLOR\u$PROMPT_SSH $blue\w$reset $PROMPT_SYMBOL "
|
|
|
|
|
|
|
|
|
|
if [ -f "$HOME/.bash-git-prompt/gitprompt.sh" ]; then
|
|
|
|
|
GIT_PROMPT_ONLY_IN_REPO=1
|
|
|
|
|
source $HOME/.bash-git-prompt/gitprompt.sh
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
|
# ALIASES
|
|
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
@ -86,13 +94,6 @@ alias vi='/usr/bin/vim'
|
|
|
|
|
|
|
|
|
|
alias serve="python3 -m $(python3 -c 'import sys; print("http.server" if sys.version_info[:2] > (2,7) else "SimpleHTTPServer")')"
|
|
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
if [ -f "$HOME/.bash-git-prompt/gitprompt.sh" ]; then
|
|
|
|
|
GIT_PROMPT_ONLY_IN_REPO=1
|
|
|
|
|
source $HOME/.bash-git-prompt/gitprompt.sh
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# -------------------------------------------------------------
|
|
|
|
|
# PYTHON
|
|
|
|
|
# -------------------------------------------------------------
|
|
|
|
@ -111,7 +112,9 @@ fi
|
|
|
|
|
# Source all .bashrc files
|
|
|
|
|
# -------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
if [ -d "$DIRECTORY" ]; then
|
|
|
|
|
for file in ~/.bashrc.d/*.bashrc; do
|
|
|
|
|
. "$file"
|
|
|
|
|
done
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|