55 lines
1.5 KiB
Plaintext
55 lines
1.5 KiB
Plaintext
#
|
|
# Common shell configurations
|
|
#
|
|
|
|
export EDITOR="vim"
|
|
export GREP_COLOR="mt=1;33"
|
|
export GOPATH="$HOME/projects/go"
|
|
export HISTCONTROL="ignoredups"
|
|
export JUPYTERLAB_DIR=$HOME/.local/share/jupyter/lab
|
|
export MOZ_USE_XINPUT2=1
|
|
export PATH="$PATH:$HOME/.cargo/bin:$HOME/bin"
|
|
export TEXMFDIST="/usr/share/texmf-dist"
|
|
export WORKON_HOME="~/.virtualenvs"
|
|
|
|
# less colors
|
|
export LESS=-R
|
|
export LESS_TERMCAP_mb=$'\E[1;31m' # begin blink
|
|
export LESS_TERMCAP_md=$'\E[1;36m' # begin bold
|
|
export LESS_TERMCAP_me=$'\E[0m' # reset bold/blink
|
|
export LESS_TERMCAP_so=$'\E[01;44;33m' # begin reverse video
|
|
export LESS_TERMCAP_se=$'\E[0m' # reset reverse video
|
|
export LESS_TERMCAP_ue=$'\E[0m' # reset underline
|
|
export LESS_TERMCAP_us=$'\E[1;32m' # begin underline
|
|
|
|
alias diff="diff --color=auto"
|
|
alias grep="grep --color=auto"
|
|
alias egrep="grep -E --color=auto"
|
|
alias gst="git status"
|
|
alias ls="ls --color=auto"
|
|
alias l="ls"
|
|
alias la="ls -a"
|
|
alias ll="ls -l"
|
|
alias lla="ls -la"
|
|
alias mkdir="mkdir -p -v"
|
|
alias restricted-vim="rvim -Zi NONE"
|
|
alias rot13="tr a-zA-Z n-za-mN-ZA-M"
|
|
alias tlmgr="$TEXMFDIST/scripts/texlive/tlmgr.pl --usermode"
|
|
alias tmux="TERM=screen-256color-bce tmux"
|
|
alias ya="yay --config /etc/pacman.conf.nokernel"
|
|
|
|
if [[ $(command -v dircolors) ]] ; then
|
|
eval $(dircolors -b)
|
|
fi
|
|
|
|
function urldecode() {
|
|
: "${*//+/ }"
|
|
echo -e "${_//%/\\x}"
|
|
}
|
|
|
|
# Virtualenv wrapper
|
|
[[ -s /usr/bin/virtualenvwrapper.sh ]] && source /usr/bin/virtualenvwrapper.sh
|
|
|
|
# AWS
|
|
[[ -f $HOME/.aws ]] && source "$HOME/.aws"
|