Last active
March 22, 2018 21:39
-
-
Save faloi/7616592 to your computer and use it in GitHub Desktop.
My zsh configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ANTIGEN=$HOME/bin | |
# Example aliases | |
alias zshconfig="st ~/.zshrc" | |
alias gitconfig="st ~/.gitconfig" | |
alias delete_merged_branches="git branch --merged | grep -v '\*' | xargs -n 1 git branch -d" | |
alias pbcopy='xsel --clipboard --input' | |
alias pbpaste='xsel --clipboard --output' | |
alias install='sudo apt-get install' | |
addrepo() { | |
sudo add-apt-repository $1 && sudo apt-get update | |
} | |
append_line_to_files() { | |
for file in $(ls); | |
do | |
echo "" >> ${file}; | |
done; | |
} | |
source $ANTIGEN/antigen.zsh | |
# Load the oh-my-zsh's library. | |
antigen use oh-my-zsh | |
antigen bundles <<EOBUNDLES | |
git | |
ruby | |
rails3 | |
rvm | |
sublime | |
colored-man | |
colorize | |
svn | |
gradle | |
mvn | |
github | |
command-not-found | |
zsh-users/zsh-syntax-highlighting | |
EOBUNDLES | |
# Load the theme. | |
antigen theme wedisagree # one of: bira, wedisagree, mortalscumbag | |
# Tell antigen that you're done. | |
antigen apply | |
export PATH=/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/faloi/bin:$HOME/workspace/parsimotion/scripts:$HOME/.rvm/bin | |
bindkey "^N" history-beginning-search-forward | |
bindkey "^P" history-beginning-search-backward | |
eval "$(hub alias -s)" | |
setopt auto_cd | |
cdpath=($HOME/workspace $HOME) | |
fpath=($HOME/bin/zsh_completion $fpath) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment