Skip to content

Instantly share code, notes, and snippets.

@sygo
Last active December 21, 2015 20:09
Show Gist options
  • Save sygo/6359674 to your computer and use it in GitHub Desktop.
Save sygo/6359674 to your computer and use it in GitHub Desktop.
This is really a variation of my old .bashrc, it calls for the prompt (you can find it under my gists as well) as an external script, you will also want at least zsh-syntax-highlight installed to have neat on-the fly...well...erm...syntax highlighting.
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
setopt appendhistory autocd extendedglob nomatch notify correctall
unsetopt beep
bindkey -v
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '$HOME/.zshrc'
autoload -Uz compinit
compinit
#autoload -U promptinit
#promptinit
#prompt clint
source ~/le_prompt.zsh
# End of lines added by compinstall
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
#-- exports --#
export EDITOR="vim"
export BROWSER="chromium"
export PATH=$PATH:$HOME/scripts:/usr/local/bin:
export SB_REMOVE_BEL=yes
export HISTCONTROL="ignoredupes"
export COMMAND_ORIENTED_HISTORY=1
#-- Aliases --#
alias ls='ls --color=auto'
alias pbcopy='xsel --clipboard --input'
alias pbpaste='xsel --clipboard --output'
alias grep='grep --color=auto'
alias gay='grc -es --colour=auto'
mkcd () { mkdir -p "$@" && cd "$@"; }
extract () {
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xjf $1 ;;
*.tar.gz) tar xzf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) rar x $1 ;;
*.gz) gunzip $1 ;;
*.tar) tar xf $1 ;;
*.tbz2) tar xjf $1 ;;
*.tgz) tar xzf $1 ;;
*.zip) unzip $1 ;;
*.Z) uncompress $1 ;;
*) echo "'$1' cannot be extracted via extract()" ;;
esac
else
echo "'$1' is not a valid file"
fi
}
#-- fing rainbows how do the work? --#
alias configure='gay ./configure'
alias diff='gay diff'
alias make='gay make'
alias gcc='gay gcc'
alias g++='gay g++'
alias cvs='gay cvs'
alias as='gay as'
alias ld='gay ld'
alias netstat='gay netstat'
alias ping='gay ping'
alias traceroute='gay traceroute'
alias tail='gay tail'
alias nmap='gay nmap'
alias ps='gay ps'
#-- colored man pages --#
export LESS_TERMCAP_mb=$'\E[01;31m'
export LESS_TERMCAP_md=$'\E[01;31m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_so=$'\E[01;44;33m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[01;32m'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment