Created
November 3, 2016 04:49
-
-
Save mohemohe/378993cbb128e08f932612ed331612dc to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # | |
| # Executes commands at the start of an interactive session. | |
| # | |
| # Authors: | |
| # Sorin Ionescu <sorin.ionescu@gmail.com> | |
| # | |
| echo initializing zsh... | |
| # Source Prezto. | |
| if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then | |
| source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" | |
| fi | |
| # Customize to your needs... | |
| #REPORTTIME=1 | |
| autoload -Uz add-zsh-hook | |
| autoload -Uz promptinit | |
| promptinit | |
| #prompt powerline | |
| prompt paradox | |
| if [ -x /usr/libexec/path_helper ]; then | |
| eval `/usr/libexec/path_helper -s` | |
| fi | |
| export XDG_CONFIG_HOME=$HOME/.config | |
| export BYOBU_PREFIX=$(brew --prefix) | |
| export HOMEBREW_GITHUB_API_TOKEN= | |
| alias -g C='| cat' | |
| alias -g G='| grep' | |
| alias -g I='| iconv -f utf-8-mac -t utf-8' | |
| alias -g L='| less' | |
| alias -g V='nvim -Ro' | |
| alias boot2arch='VBoxHeadless -s "Arch Linux" &' | |
| unalias bower | |
| alias cls='clear' | |
| alias curl='curl --ipv4 -L' | |
| alias preztoconfig='nvim ~/.zpreztorc' | |
| unalias sl | |
| alias sync='sync;sync;sync' | |
| alias view='nvim -Ro' | |
| alias vim='nvim' | |
| alias vimconfig='nvim ${XDG_CONFIG_HOME}/nvim/init.vim' | |
| alias zshconfig='nvim ~/.zshrc' | |
| #alias zshreload='source ~/.zshrc' | |
| alias zshreload='exec zsh' | |
| alias pacman='pacapt' | |
| alias yaourt='pacapt' | |
| alias -s py='python' | |
| function precmd_prompt-iikanji() { | |
| if [[ $PROMPT == \(* ]]; then | |
| export PROMPT=" | |
| virtualenv: ${PROMPT}" | |
| fi | |
| } | |
| add-zsh-hook precmd precmd_prompt-iikanji | |
| eval "$(pyenv init -)" | |
| eval "$(pyenv virtualenv-init -)" | |
| eval "$(fasd --init auto)" | |
| #x[[ -z "$TMUX" && -z "$WINDOW" && ! -z "$PS1" ]] && ~/.homebrew/bin/byobu | |
| if [ -z "$SSH_AUTH_SOCK" ] ; then | |
| eval `ssh-agent -s` | |
| ssh-add ~/.ssh/* &> /dev/null | |
| fi | |
| echo done! | |
| # reset | |
| echo . > /dev/null | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment