dots/.bashrc
2025-07-29 11:10:11 -04:00

59 lines
1.4 KiB
Bash

# ----- START THEME -----
RESTORE='\033[0m'
PURPLE='\033[00;35m'
LRED='\033[01;31m'
LGREEN='\033[01;32m'
LBLUE='\033[01;34m'
LCYAN='\033[01;36m'
virtual_env() {
if [ -n "$VIRTUAL_ENV" ]; then
echo "(${VIRTUAL_ENV##*/})"
fi
echo ""
}
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export VIRTUAL_ENV_DISABLE_PROMPT=1
export PS1="${TITLEBAR}┌─${LRED}\$(virtual_env)${RESTORE}[${LCYAN}\u${RESTORE}@${LBLUE}\h${RESTORE}][\w]${PURPLE}\$(parse_git_branch)${RESTORE}\n└─▶ "
# ----- END THEME -----
export VISUAL=vim
export EDITOR="$VISUAL"
#generic
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias hg='history | grep'
alias pg='ps aux | grep'
alias k9='kill -9'
# git
alias gs="git status"
alias gc="git commit -m"
alias ga="git add"
alias gcc="git checkout -b"
alias activate="source venv/bin/activate"
alias dmenu="dmenu -nf '#BBBBBB' -nb '#3A515D' -sb '#83C092' -sf '#000000' -fn 'monospace-16'"
# PYWAL ---------------------
# Import colorscheme from 'wal' asynchronously
# & # Run the process in the background.
# ( ) # Hide shell job control messages.
# Not supported in the "fish" shell.
alias wal="wal -o $HOME/.config/wal/done.sh"
(cat ~/.cache/wal/sequences &)
# Alternative (blocks terminal for 0-3ms)
cat ~/.cache/wal/sequences
# To add support for TTYs this line can be optionally added.
source ~/.cache/wal/colors-tty.sh