# このファイルは対話的シェルで読み込まれる # this file will be loaded by interractive shell # PATH="$HOME/opt/bin:$HOME/opt/scripts:$PATH" # Lines configured by zsh-newuser-install HISTFILE=~/.zsh_history HISTSIZE=1000 SAVEHIST=1000 setopt appendhistory autocd bindkey -e bindkey '^[^B' backward-word bindkey '^[^F' forward-word # End of lines configured by zsh-newuser-install # The following lines were added by compinstall zstyle ':completion:*' completer _expand _complete _ignored _correct _approximate zstyle ':completion:*' matcher-list '' zstyle ':completion:*' max-errors 2 numeric zstyle :compinstall filename '/home/kent/.zshrc' autoload -Uz compinit compinit # End of lines added by compinstall alias ls='ls -F --show-control-chars --color=auto' alias la='ls -a' alias ll='ls -l' alias b='popd' alias vi='vim' alias sless='less -x4 -S' alias man='LANGUAGE= LANG= LC_ALL=C man' #alias octave='GNUTERM=aqua /Applications/Octave.app/Contents/Resources/bin/octave' #alias mail='msmtp --host=nirai.ie.u-ryukyu.ac.jp --port=587 --auth=plain --user=k088511 --from=kent@cr.ie.u-ryukyu.ac.jp' alias PASTE='xsel -o' alias COPY='xsel -i' alias open='pcmanfm' setopt prompt_subst PROMPT='%{%}<%{%}%{%}%n%{%}:%{%}%m%{%}%{%}>%{%} ' #PROMPT='[%{%}%n%{%}%{%}@%{%}%{%}%m%{%}]%# ' RPROMPT='%{[$[32+$RANDOM % 5]m%}%2~%{%}%(1j.:&%j.)%(?..:?%?)' #RPROMPT='%(1j.%j.x)' # %j -- the number of jobs # %~ -- current directory # %m -- hostname up to the first `.' # %n -- username # %(x.str1.str2) : true then str1, false then str2 # x = `Nj' or `N?' or ... # j: the number of jobs is at least N # ?: prev command exit status is at least N setopt autopushd pushdminus # ~+0 ~+1 ~+2 ... dirs -v の上から ~0 ~1 ~2 も同じ # ~-0 ~-1 ~-2 ... dirs -v の下から # pushdminus をセットすると+-が逆転するが,~0 ~1 ~2などは変わらない eval `dircolors ~/.dir_colors` zmodload zsh/complist export ZLS_COLORS="$LS_COLORS" zle_highlight=(special:underline,bold,bg=magenta,fg=black isearch:bold,bg=cyan,fg=black region:bold,bg=yellow,fg=black) # original functions funciton conf() { if [ -f "$1" ]; then file=$1 else file=config.log fi head -7 $file | tail -1 } #disable mkdir # zsh read followed files # /etc/zshenv, $ZDOTDIR/.zshenv # /etc/zprofile, $ZDOTDIR/.zprofile IF (login shell) # /etc/zshrc, $ZDOTDIR/.zshrc IF (interactive shell) # /etc/zlogin, $ZDOTDIR/.zlogin IF (login shell) screen -ls