Initial take on .zshrc and custom theme
This commit is contained in:
87
.zshrc
Normal file
87
.zshrc
Normal file
@@ -0,0 +1,87 @@
|
||||
# Path to your oh-my-zsh configuration.
|
||||
ZSH=$HOME/.oh-my-zsh
|
||||
|
||||
# Aliases
|
||||
# Disable correction.
|
||||
alias ack='nocorrect ack'
|
||||
alias cd='nocorrect cd'
|
||||
alias cp='nocorrect cp'
|
||||
alias ebuild='nocorrect ebuild'
|
||||
alias gcc='nocorrect gcc-4.8 -std=gnu11'
|
||||
alias g++='nocorrect g++-4.8 -std=gnu++11'
|
||||
alias gist='nocorrect gist'
|
||||
alias grep='nocorrect grep'
|
||||
alias heroku='nocorrect heroku'
|
||||
alias ln='nocorrect ln'
|
||||
alias man='nocorrect man'
|
||||
alias mkdir='nocorrect mkdir'
|
||||
alias mv='nocorrect mv'
|
||||
alias rm='nocorrect rm'
|
||||
|
||||
# Disable globbing.
|
||||
alias fc='noglob fc'
|
||||
alias find='noglob find'
|
||||
alias ftp='noglob ftp'
|
||||
alias history='noglob history'
|
||||
alias locate='noglob locate'
|
||||
alias rake='noglob rake'
|
||||
alias rsync='noglob rsync'
|
||||
alias scp='noglob scp'
|
||||
alias sftp='noglob sftp'
|
||||
|
||||
# Define general aliases.
|
||||
alias _='sudo'
|
||||
alias cp="${aliases[cp]:-cp} -i"
|
||||
alias ln="${aliases[ln]:-ln} -i"
|
||||
alias mkdir="${aliases[mkdir]:-mkdir} -p"
|
||||
alias mv="${aliases[mv]:-mv} -i"
|
||||
alias rm="${aliases[rm]:-rm} -i"
|
||||
alias cls=clear
|
||||
alias v8='rlwrap /usr/local/bin/v8'
|
||||
alias sbcl='rlwrap /usr/local/bin/sbcl'
|
||||
alias ccl='rlwrap /usr/local/bin/ccl'
|
||||
alias ccl64='rlwrap /usr/local/bin/ccl64'
|
||||
alias q='rlwrap ~/q/m32/q'
|
||||
alias j='/Applications/J701/bin/jconsole /Users/ed/.jrc'
|
||||
alias nimc='nimrod c --verbosity:0'
|
||||
alias nimcr='nimrod c --verbosity:0 -d:release'
|
||||
alias nim='rlwrap nimrod i'
|
||||
alias bu='brew upgrade'
|
||||
alias bo='brew outdated'
|
||||
|
||||
DISABLE_UPDATE_PROMPT="true"
|
||||
|
||||
# Uncomment following line if you want to disable marking untracked files under
|
||||
# VCS as dirty. This makes repository status check for large repositories much,
|
||||
# much faster.
|
||||
# DISABLE_UNTRACKED_FILES_DIRTY="true"
|
||||
|
||||
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
|
||||
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
|
||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||
plugins=(battery brew emoji-clock git golang lein osx zsh-syntax-highlighting)
|
||||
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
||||
# Customize to your needs...
|
||||
|
||||
# Load RVM into the shell session.
|
||||
if [[ -s "$HOME/.rvm/scripts/rvm" ]]; then
|
||||
unsetopt AUTO_NAME_DIRS
|
||||
source "$HOME/.rvm/scripts/rvm"
|
||||
fi
|
||||
|
||||
unsetopt AUTO_PUSHD
|
||||
export GOPATH=$HOME/src/lang/go
|
||||
export PGHOST=127.0.0.1
|
||||
export MEMCACHED_SERVERS=localhost
|
||||
export PATH=~/.babel/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/opt/X11/bin:/usr/texbin:/usr/local/share/npm/bin:$HOME/src/lang/go/bin:$HOME/bin:.
|
||||
|
||||
#bindkey -e
|
||||
function follow() {
|
||||
if [ $# -eq 0 ]; then
|
||||
echo "Usage: follow <filename>\nChange to the directory holding <filename>\n"
|
||||
else
|
||||
pushd `filepath $1`
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user