-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
68 lines (55 loc) · 2.25 KB
/
.zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#####################################################################
#
# Sample .zshrc file
# initial setup file for only interactive zsh
# This file is read after .zshenv file is read.
#
#####################################################################
###
# Set Shell variable
# WORDCHARS=$WORDCHARS:s,/,,
HISTSIZE=20000 HISTFILE=~/.zhistory SAVEHIST=18000
PROMPT='%B%F{3}%m%f%b@%T %F{cyan}[%~]%f
%% '
RPROMPT=''
# Set shell options
# 有効にしてあるのは副作用の少ないもの
setopt auto_cd auto_remove_slash auto_name_dirs
setopt extended_history hist_ignore_dups hist_ignore_space prompt_subst
setopt extended_glob list_types no_beep always_last_prompt
setopt cdable_vars sh_word_split auto_param_keys pushd_ignore_dups
# 便利だが副作用の強いものはコメントアウト
#setopt auto_menu correct rm_star_silent sun_keyboard_hack
#setopt share_history inc_append_history
# Alias and functions
alias copy='cp -ip' del='rm -i' move='mv -i'
alias fullreset='echo "\ec\ec"'
h () {history $* | less}
alias ja='LANG=ja_JP.eucJP XMODIFIERS=@im=kinput2'
alias ls='ls -F' la='ls -a' ll='ls -la'
alias grep='grep --color=auto'
mdcd () {mkdir -p "$@" && cd "$*[-1]"}
mdpu () {mkdir -p "$@" && pushd "$*[-1]"}
alias pu=pushd po=popd dirs='dirs -v'
# Suffix aliases(起動コマンドは環境によって変更する)
alias -s pdf=acroread dvi=xdvi
alias -s {odt,ods,odp,doc,xls,ppt}=soffice
alias -s {tgz,lzh,zip,arc}=file-roller
# binding keys
bindkey -e
#bindkey '^p' history-beginning-search-backward
#bindkey '^n' history-beginning-search-forward
# 補完システムを利用: 補完の挙動が分かりやすくなる2つの設定のみ記述
zstyle ':completion:*' format '%BCompleting %d%b'
zstyle ':completion:*' group-name ''
# 補完で大文字小文字を区別しない
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
# 補完候補もハイライト
zstyle ':completion:*:default' menu select=2
autoload -U compinit && compinit
source ~/.bashrc
PERL_MB_OPT="--install_base \"/Users/datsuns/perl5\""; export PERL_MB_OPT;
PERL_MM_OPT="INSTALL_BASE=/Users/datsuns/perl5"; export PERL_MM_OPT;
#source $(brew --prefix nvm)/nvm.sh
[[ -s "/Users/datsuns/.gvm/scripts/gvm" ]] && source "/Users/datsuns/.gvm/scripts/gvm"
export GOPATH=~/.go