dotfile / bashrc

~/.bashrc Commits Diff Raw
export XDG_RUNTIME_DIR=/run/user/`id -u`
export PATH="$PATH:$HOME/bin"
export PATH="$PATH:$HOME/go/bin"
export CGO_CFLAGS="-g -O2 -Wno-return-local-addr"
export EDITOR='vim'

alias dev-restart='systemctl --user restart dotfilehub-development'
alias dev-logs='journalctl --user-unit=dotfilehub-development -ef -o cat'

alias prod-restart='systemctl --user restart dotfilehub'
alias prod-logs='journalctl --user-unit=dotfilehub -ef -o cat'

alias dev-db='sqlite3 /home/dotfile/dev.db -cmd ".read /home/dotfile/stats.sql"'
alias prod-db='sqlite3 /home/dotfile/prod.db -cmd ".read /home/dotfile/stats.sql"'

alias dot='dotfile'

if [ -f ~/.bash_ps1 ]; then
    . ~/.bash_ps1
fi