Skip to content

Instantly share code, notes, and snippets.

@vulpicastor
Last active November 8, 2018 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vulpicastor/656630da2fca24b5282b2a39940409b4 to your computer and use it in GitHub Desktop.
Save vulpicastor/656630da2fca24b5282b2a39940409b4 to your computer and use it in GitHub Desktop.
typeset -U path
path=(/usr/local/go/bin $path $HOME/bin $HOME/.local/bin $HOME/go/bin)
HISTFILE=~/.histfile
HISTSIZE=5000
SAVEHIST=200000
# Enable completion
autoload -Uz compinit
compinit
# Gimme my help back
autoload -Uz run-help
unalias run-help
alias help=run-help
# Autoset window
case $TERM in
xterm*)
precmd () {print -Pn "\e]0;%n@%m:%~\a"}
;;
esac
# /etc/inputrc keybindings
# for linux console and RH/Debian xterm
bindkey -e
bindkey "\e[1~" beginning-of-line
bindkey "\e[4~" end-of-line
# commented out keymappings for pgup/pgdown to reach begin/end of history
#bindkey "\e[5~" beginning-of-history
#bindkey "\e[6~" end-of-history
bindkey "\e[5~" history-search-backward
bindkey "\e[6~" history-search-forward
bindkey "\e[3~" delete-char
bindkey "\e[2~" quoted-insert
bindkey "\e[5C" forward-word
bindkey "\e[5D" backward-word
bindkey "\e[1;5C" forward-word
bindkey "\e[1;5D" backward-word
bindkey "\eOH" beginning-of-line
bindkey "\eOF" end-of-line
export EDITOR=vim
# Paths
export GOPATH=$HOME/go
export GNUPGBIN=/usr/bin/gpg2
# Aliases
alias moshmit='mosh --ssh="ssh -K" --server="athrun mosh_project mosh-server"'
alias renew='kinit $USER@ATHENA.MIT.EDU'
#alias -g krbroot='KRB5CCNAME=KEYRING:user:$USER:0'
alias -g krbroot='KRB5CCNAME=KCM:1000:0'
# SIPB MP3
SIPBMP3='zsr.mit.edu'
alias lpsipbmp3='CUPS_SERVER=$SIPBMP3 lp -d sipbmp3'
alias lprmsipbmp3='CUPS_SERVER=$SIPBMP3 lprm -P sipbmp3'
alias lpqsipbmp3='CUPS_SERVER=$SIPBMP3 lpq -P sipbmp3'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment