Created
February 28, 2017 16:04
-
-
Save smartlime/fcc34e898dabb801535375e2f3a5c88d 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
| ZSH=$HOME/.oh-my-zsh | |
| ZSH_THEME="agnoster" | |
| zstyle :omz:plugins:ssh-agent agent-forwarding on | |
| zstyle :omz:plugins:ssh-agent identities id_rsa | |
| export UPDATE_ZSH_DAYS=13 | |
| plugins=(rails osx zsh-syntax-highlighting common-aliases sudo wd dircycle last-working-dir brew gitfast git-extras rvm gem capistrano redis-cli docker vagrant npm pip supervisor autojump ssh-agent httpie urltools screen sprunge web-search) | |
| source $ZSH/oh-my-zsh.sh | |
| POWERLINE_FULL_CURRENT_PATH="true" | |
| POWERLINE_DETECT_SSH="true" | |
| export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin | |
| export LANG="en_US.UTF-8" | |
| LC_COLLATE="ru_RU.UTF-8" | |
| LC_CTYPE="ru_RU.UTF-8" | |
| LC_MESSAGES="en_US.UTF-8" | |
| LC_MONETARY="ru_RU.UTF-8" | |
| LC_NUMERIC="ru_RU.UTF-8" | |
| LC_TIME="ru_RU.UTF-8" | |
| export fpath=(/usr/local/share/zsh-completions $fpath) | |
| # Force file name completion on C-x TAB, Shift-TAB. | |
| zle -C complete-files complete-word _generic | |
| zstyle ':completion:complete-files:*' completer _files | |
| bindkey "^X^I" complete-files | |
| #bindkey "^[[Z" complete-files | |
| # Force menu on C-x RET. | |
| zle -C complete-first complete-word _generic | |
| zstyle ':completion:complete-first:*' menu yes | |
| bindkey "^X^M" complete-first | |
| # Move to where the arguments belong. | |
| after-first-word() { | |
| zle beginning-of-line | |
| zle forward-word | |
| } | |
| zle -N after-first-word | |
| bindkey "^X1" after-first-word | |
| # Complete in history with M-/, M-, | |
| zstyle ':completion:history-words:*' list no | |
| zstyle ':completion:history-words:*' menu yes | |
| zstyle ':completion:history-words:*' remove-all-dups yes | |
| bindkey "\e/" _history-complete-older | |
| bindkey "\e," _history-complete-newer | |
| # ssh-agent | |
| echo "export SSH_AGENT_PID=$SSH_AGENT_PID" > ~/.ssh-agent | |
| echo "export SSH_AUTH_SOCK=$SSH_AUTH_SOCK" >> ~/.ssh-agent | |
| chmod 777 ~/.ssh-agent | |
| # tmux | |
| alias tmux="TERM=screen-256color tmux" | |
| alias tm="tmux attach || tmux new" | |
| alias ll='ls -laht' | |
| alias zzz='ssh s' | |
| alias dff="clear;df -h" | |
| alias dnscheck="ping `date +%s`.lvh.me" | |
| [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting | |
| if [ $TERM = xterm-256color ]; then | |
| alias rvm-prompt=$HOME/.rvm/bin/rvm-prompt | |
| RPROMPT="%{$fg[blue]%}\$(~/.rvm/bin/rvm-prompt s i v g) %{$fg[yellow]%}[%*]%{$fg[default]%}" | |
| #RPROMPT="%{$fg[blue]%}\$(~/.rvm/bin/rvm-prompt s i v g) $RPROMPT" | |
| else | |
| PROMPT='%~ $ ' | |
| RPROMPT="" | |
| fi | |
| test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment