Skip to content

Instantly share code, notes, and snippets.

@katsuobushiFPGA
Last active April 28, 2016 15:11
Show Gist options
  • Save katsuobushiFPGA/546acc77a261ed67132a to your computer and use it in GitHub Desktop.
Save katsuobushiFPGA/546acc77a261ed67132a to your computer and use it in GitHub Desktop.
#-----------------------------
#-------User Settings---------
#-----------------------------
#補完機能
autoload -U compinit
compinit
export LANG=ja_JP.UTF-8
#プロンプト
autoload colors
colors
#HISTORY
HISTFILE="$HOME/.zsh_history"
HISTSIZE=100000
SAVEHIST=100000
setopt hist_ignore_dups
setopt hist_ignore_space
### Ls Color ###
#dir-colors
eval `dircolors ~/lib/zsh/dircolors-solarized/dircolors.ansi-universal`
case "${OSTYPE}" in
freebsd*|darwin*)
alias ls="ls -GF"
;;
linux*)
alias ls="ls -F --color"
;;
esac
alias la='ls -a'
alias ll='ls -l'
alias lla='ls -al'
# 補完候補もLS_COLORSに合わせて色が付くようにする
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
### Aliases ###
##時刻を表示させる
alias history='history -E'
unsetopt promptcr
#=============================
# source zsh-syntax-highlighting
#=============================
if [ -f ~/lib/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]; then
source ~/lib/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
fi
#=============================
#source zsh-git-prompt
#=============================
if [ -f ~/lib/zsh/zsh-git-prompt/zshrc.sh ]; then
source ~/lib/zsh/zsh-git-prompt/zshrc.sh
fi
# an example prompt
#PROMPT="%F{green}[%n]%f $ "
#RPROMPT='[%d]'
PROMPT='%B%F{green}[%m]%f%~%b$(git_super_status) %# '
#=============================
#environment settings
#=============================
PATH=$PATH:/home/horiba/bin
PATH=$PATH:/home/horiba/lib/scala/activator-dist-1.3.9/bin
export PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment