Skip to content

Instantly share code, notes, and snippets.

@frenchy64
Created March 3, 2011 02:31
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 frenchy64/852212 to your computer and use it in GitHub Desktop.
Save frenchy64/852212 to your computer and use it in GitHub Desktop.
.zshenv
# Set up the prompt
autoload -Uz promptinit
promptinit
prompt walters
# Use emacs keybindings even if our EDITOR is set to vi
bindkey -e
# Keep 1000 lines of history within the shell and save it to ~/.zsh_history:
HISTSIZE=99999
SAVEHIST=99999
HISTFILE=~/.zsh_history
# Use modern completion system
autoload -Uz compinit
compinit
zstyle ':completion:*' auto-description 'specify: %d'
zstyle ':completion:*' completer _expand _complete _correct _approximate
zstyle ':completion:*' format 'Completing %d'
zstyle ':completion:*' group-name ''
zstyle ':completion:*' menu select=2
eval "$(dircolors -b)"
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*'
zstyle ':completion:*' menu select=long
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
zstyle ':completion:*' use-compctl false
zstyle ':completion:*' verbose true
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
function take {
mkdir -p $1
cd $1
}
function e {
vim ~/.zsh$1
source ~/.zsh$1
}
source ~/.zshenv
fpath=($fpath $HOME/.zsh/func)
typeset -U fpath
# zgitinit and prompt_wunjo_setup must be somewhere in your $fpath, see README for more.
setopt promptsubst
# Load the prompt theme system
autoload -U promptinit
promptinit
# Use the wunjo prompt theme
prompt wunjo
#
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
alias sl='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# git aliases
alias g='git status'
alias ga='git add'
alias gc='git commit'
alias gpo='git push origin'
alias gfo='git fetch origin'
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# cd aliass
alias cdp='cd ~/Projects'
alias cdd='cd ~/Downloads'
alias ..='cd ..'
# ack alias
alias ack='ack-grep'
# wget alias
alias wgetn='wget --no-check-certificate'
PATH=$PATH:~/bin:~/.cljr/bin:~/clj/bin:~/.vim/vimclojure/client/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment