Created
October 25, 2018 05:11
-
-
Save Twinuma/9de448356bfcb5bb0398fbb2acfae351 to your computer and use it in GitHub Desktop.
zpreztorc
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
# | |
# Sets Prezto options. | |
# | |
# Authors: | |
# Sorin Ionescu <[email protected]> | |
# | |
# | |
# General | |
# | |
# Set case-sensitivity for completion, history lookup, etc. | |
# zstyle ':prezto:*:*' case-sensitive 'yes' | |
# Color output (auto set to 'no' on dumb terminals). | |
zstyle ':prezto:*:*' color 'yes' | |
# Set the Zsh modules to load (man zshmodules). | |
# zstyle ':prezto:load' zmodule 'attr' 'stat' | |
# Set the Zsh functions to load (man zshcontrib). | |
# zstyle ':prezto:load' zfunction 'zargs' 'zmv' | |
# Set the Prezto modules to load (browse modules). | |
# The order matters. | |
zstyle ':prezto:load' pmodule \ | |
'environment' \ | |
'terminal' \ | |
'editor' \ | |
'history' \ | |
'directory' \ | |
'spectrum' \ | |
'utility' \ | |
'completion' \ | |
'prompt' | |
# | |
# Autosuggestions | |
# | |
# Set the query found color. | |
# zstyle ':prezto:module:autosuggestions:color' found '' | |
# | |
# Editor | |
# | |
# Set the key mapping style to 'emacs' or 'vi'. | |
zstyle ':prezto:module:editor' key-bindings 'vi' | |
# Auto convert .... to ../.. | |
# zstyle ':prezto:module:editor' dot-expansion 'yes' | |
# | |
# Git | |
# | |
# Ignore submodules when they are 'dirty', 'untracked', 'all', or 'none'. | |
# zstyle ':prezto:module:git:status:ignore' submodules 'all' | |
# | |
# GNU Utility | |
# | |
# Set the command prefix on non-GNU systems. | |
# zstyle ':prezto:module:gnu-utility' prefix 'g' | |
# | |
# History Substring Search | |
# | |
# Set the query found color. | |
# zstyle ':prezto:module:history-substring-search:color' found '' | |
# Set the query not found color. | |
# zstyle ':prezto:module:history-substring-search:color' not-found '' | |
# Set the search globbing flags. | |
# zstyle ':prezto:module:history-substring-search' globbing-flags '' | |
# | |
# Pacman | |
# | |
# Set the Pacman frontend. | |
# zstyle ':prezto:module:pacman' frontend 'yaourt' | |
# | |
# Prompt | |
# | |
# Set the prompt theme to load. | |
# Setting it to 'random' loads a random theme. | |
# Auto set to 'off' on dumb terminals. | |
#zstyle ':prezto:module:prompt' theme 'powerline' | |
zstyle ':prezto:module:prompt' theme 'sorin' | |
#zstyle ':prezto:module:prompt' theme 'paradox' | |
#zstyle ':prezto:module:prompt' theme 'steeef' | |
#zstyle ':prezto:module:prompt' theme 'pure' | |
# | |
# Ruby | |
# | |
# Auto switch the Ruby version on directory change. | |
# zstyle ':prezto:module:ruby:chruby' auto-switch 'yes' | |
# | |
# Screen | |
# | |
# Auto start a session when Zsh is launched in a local terminal. | |
# zstyle ':prezto:module:screen:auto-start' local 'yes' | |
# Auto start a session when Zsh is launched in a SSH connection. | |
# zstyle ':prezto:module:screen:auto-start' remote 'yes' | |
# | |
# SSH | |
# | |
# Set the SSH identities to load into the agent. | |
# zstyle ':prezto:module:ssh:load' identities 'id_rsa' 'id_rsa2' 'id_github' | |
# | |
# Syntax Highlighting | |
# | |
# Set syntax highlighters. | |
# By default, only the main highlighter is enabled. | |
# zstyle ':prezto:module:syntax-highlighting' highlighters \ | |
# 'main' \ | |
# 'brackets' \ | |
# 'pattern' \ | |
# 'line' \ | |
# 'cursor' \ | |
# 'root' | |
# | |
# Set syntax highlighting styles. | |
# zstyle ':prezto:module:syntax-highlighting' styles \ | |
# 'builtin' 'bg=blue' \ | |
# 'command' 'bg=blue' \ | |
# 'function' 'bg=blue' | |
# | |
# Terminal | |
# | |
# Auto set the tab and window titles. | |
# zstyle ':prezto:module:terminal' auto-title 'yes' | |
# Set the window title format. | |
# zstyle ':prezto:module:terminal:window-title' format '%n@%m: %s' | |
# Set the tab title format. | |
# zstyle ':prezto:module:terminal:tab-title' format '%m: %s' | |
# | |
# Tmux | |
# | |
# Auto start a session when Zsh is launched in a local terminal. | |
# zstyle ':prezto:module:tmux:auto-start' local 'yes' | |
# Auto start a session when Zsh is launched in a SSH connection. | |
# zstyle ':prezto:module:tmux:auto-start' remote 'yes' | |
# Integrate with iTerm2. | |
# zstyle ':prezto:module:tmux:iterm' integrate 'yes' | |
# | |
alias gip='curl http://checkip.amazonaws.com/' | |
alias lip='ifconfig en0 | grep inet' | |
export AWS_CONFIG_FILE=/Users/niinuma/config/awscli.config | |
alias ss='ssh $(grep -iE "^host[[:space:]]+[^*]" ~/.ssh/config|peco|awk "{print \$2}")' | |
alias ss-taxi='ssh $(grep -iE "^host[[:space:]]+[^*]" ~/.ssh/taxi/config|peco|awk "{print \$2}")' | |
alias ss-tokup='ssh $(grep -iE "^host[[:space:]]+[^*]" ~/.ssh/tokup/config|peco|awk "{print \$2}")' | |
alias ss-mqn='ssh $(grep -iE "^host[[:space:]]+[^*]" ~/.ssh/monoqn/config|peco|awk "{print \$2}")' | |
alias ss-yos='ssh $(grep -iE "^host[[:space:]]+[^*]" ~/.ssh/yoshinoya/config|peco|awk "{print \$2}")' | |
alias ss-kyc='ssh $(grep -iE "^host[[:space:]]+[^*]" ~/.ssh/kayac/config|peco|awk "{print \$2}")' | |
alias ss-fr='ssh $(grep -iE "^host[[:space:]]+[^*]" ~/.ssh/fr/config|peco|awk "{print \$2}")' | |
alias ss-img='ssh $(grep -iE "^host[[:space:]]+[^*]" ~/.ssh/imagica/config|peco|awk "{print \$2}")' | |
alias ss-syrup='ssh $(grep -iE "^host[[:space:]]+[^*]" ~/.ssh/syrup/config|peco|awk "{print \$2}")' | |
alias ss-kaneko='ssh $(grep -iE "^host[[:space:]]+[^*]" ~/.ssh/kaneko/config|peco|awk "{print \$2}")' | |
alias ss-ricoh='ssh $(grep -iE "^host[[:space:]]+[^*]" ~/.ssh/ricoh/config|peco|awk "{print \$2}")' | |
alias ss-zdc='ssh $(grep -iE "^host[[:space:]]+[^*]" ~/.ssh/zdc/config|peco|awk "{print \$2}")' | |
alias ss-aws='ssh $(grep -iE "^host[[:space:]]+[^*]" ~/.ssh/codecommit/config|peco|awk "{print \$2}")' | |
alias ss-cw='ssh $(grep -iE "^host[[:space:]]+[^*]" ~/.ssh/cw/config|peco|awk "{print \$2}")' | |
function peco-select-history() { | |
local tac | |
if which tac > /dev/null; then | |
tac="tac" | |
else | |
tac="tail -r" | |
fi | |
BUFFER=$(history -n 1 | eval $tac | peco --query "$LBUFFER") | |
CURSOR=$#BUFFER | |
zle clear-screen | |
} | |
zle -N peco-select-history | |
bindkey '^r' peco-select-history | |
alias awsshell='aws-shell' | |
setopt print_eight_bit | |
setopt auto_pushd | |
setopt auto_cd | |
setopt bang_hist | |
setopt extended_history | |
setopt hist_ignore_dups | |
setopt share_history | |
setopt hist_reduce_blanks | |
autoload -U compinit; compinit | |
setopt auto_list | |
setopt auto_menu | |
setopt list_packed | |
setopt list_types | |
setopt nolistbeep | |
setopt nobeep | |
autoload colors | |
colors | |
alias gogl='/Users/takachan/goo.gl.sh' | |
alias now='date +%Y%m%d%H%M%S' | |
# export AWS_ACCESS_KEY_ID=AKIAI5HJ2C457SPZJJUA | |
# export AWS_SECRET_ACCESS_KEY=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 | |
# export AWS_DEFAULT_REGION=ap-northeast-1 | |
alias ssh-keygen='ssh-keygen -C ""' | |
eval "$(pyenv init -)" | |
export PATH="$HOME/.pyenv/shims:/usr/local/google-cloud-sdk/bin:$PATH" | |
EDITOR=vim | |
alias dsstore='find /usr/local -name '.DS_Store' -type f -ls -delete' | |
export PATH="$HOME/.embulk/bin:$PATH" | |
export AWS_CREDENTIAL_PROFILES_FILE=~/.aws/config | |
export VAULT_ADDR='http://13.114.102.188:8200' | |
export VAULT_TOKEN=3j16qM44XBDvbinyj1sE1Ppe | |
export GOPATH=$HOME/go | |
export PATH=$PATH:$GOPATH/bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment