Skip to content

Instantly share code, notes, and snippets.

@yoshimana
Created November 6, 2019 06:16
Show Gist options
  • Save yoshimana/36e7639bc86080e867a43969ec5faf32 to your computer and use it in GitHub Desktop.
Save yoshimana/36e7639bc86080e867a43969ec5faf32 to your computer and use it in GitHub Desktop.
export LANG=ja_JP.UTF-8
autoload -Uz colors
colors
PROMPT='%F{yellow}>_%f '
#RPROMPT=''
# Completion Settings
autoload -Uz compinit
compinit
zstyle ':completion:*' menu select
fpath=(/path/to/homebrew/share/zsh-completions $fpath)
# Near Word Correct
setopt correct
# Histry settings
export HISTFILE=${HOME}/.zsh_history
export HISTSIZE=1000
export SAVEHIST=100000
setopt hist_ignore_dups
setopt hist_ignore_all_dups
setopt extended_history
# Optons
bindkey '^R' history-incremental-pattern-search-backward
# ls coloe setting
export LSCOLORS=gxfxcxdxbxegedabagacag
export LS_COLORS='di=36;40:ln=35;40:so=32;40:pi=33;40:ex=31;40:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;46'
# All History print
function history-all { history -E 1 }
# Homebrew settings
if [ -f $(brew --prefix)/etc/brew-wrap ];then
source $(brew --prefix)/etc/brew-wrap
fi
# alias
alias cask="brew cask"
alias ls="ls -G"
alias ll="ls -lA"
alias la="ls -lA"
alias h='history'
# Hyper ink badge
#"ink-badge $(hostname)"
precmd() {
pwd=$(pwd)
cwd=${pwd##*/}
print -Pn "\e]0;$cwd\a"
}
export PATH="/usr/local/opt/sqlite/bin:$PATH"
export PATH=$HOME/go/bin:$PATH
export PATH=$HOME/.nodebrew/current/bin:$PATH
export PATH=/usr/local/bin:$PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment