35 lines
723 B
Plaintext
35 lines
723 B
Plaintext
#
|
|
# ~/.bashrc.local -- vriska version
|
|
#
|
|
|
|
# Host-specific aliases
|
|
alias passheinlein="PASSWORD_STORE_DIR=~/.password-store-heinlein pass"
|
|
|
|
alias git-fetchboth="git fetch origin master:master; git fetch origin develop:develop"
|
|
|
|
# Shortcuts to encode/decode strings with base64
|
|
function b64enc {
|
|
echo -n "$1" | base64 -w 0
|
|
echo
|
|
}
|
|
function b64dec {
|
|
echo -n "$1" | base64 -d
|
|
echo
|
|
}
|
|
|
|
# Assume colors are set in global .bashrc:
|
|
# - TRED
|
|
# - TGREEN
|
|
# - TCYANB (bold)
|
|
# - TBLUE
|
|
# - TWHITEB (bold)
|
|
# - TRESET
|
|
|
|
# Set host-specific bash prompt: "user@host pwd >:] "
|
|
#if [[ ${EUID} == 0 ]] ; then
|
|
# PS1="${TRED}\u@\h ${TBLUE}\w ${TCYANB}>:] ${TRESET}"
|
|
#else
|
|
# PS1="${TGREEN}\u@\h ${TBLUE}\w ${TCYANB}>:] ${TRESET}"
|
|
#fi
|
|
|