0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Zsh の設定

Posted at

----------------------------------------------------------------------------------------

path hsetting

-----------------------------------------------------------------------------------------

autoload -Uz compinit
compinit
autoload -Uz colors
colors

zstyle ':completion:' completer _expand _complete _match
zstyle ':completion:
' matcher-list '' 'm:{a-zA-z}={A-Za-z} r:|[-_.]=**'
zstyle ':completion:' format '%B%d%b'
zstyle ':completion:
' menu select
zstyle ':completion:*' list-colors "$LS_COLORS"

export HISTFILE=${HOME}/.zsh_history
export HISTSIZE=100000
export SAVEHIST=$HISTSIZE

setopt hist_ignore_dups
setopt hist_ignore_space
setopt hist_no_store
setopt share_history
setopt no_beep
setopt nolistbeep

WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'

local_host_name=$(hostname -s)

p_color=yellow

if [ $local_host_name[0,3] = "ssh" ]; then
p_color=red
fi

umask 022
set uname=/bin/uname

set path = ( ~/bin /usr/bin /usr/local/bin /usr/ucb /usr/etc /usr/local /usr/lib /usr/local/lib )

set path = ($path /opt/pbs/default/bin)

set path = (./ /etc /usr/bin /usr/local/bin /usr/X11R6/bin /t/bin /opt/pbs/default/bin /usr/local/lsf/bin/ /bin /usr/bin/java )

---------------------------------------------------------------------------------------

LIBRARY_PATH

-----------------------------------------------------------------------------------------

$setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/usr/local/lib:/work/iip_dv/tools/gcc-4.8.2/lib64

setenv LD_LIBRARY_PATH /apps/gcc/3.2.2/lib:${LD_LIBRARY_PATH}

-----------------------------------------------------------------------------------------

prompt setting

-----------------------------------------------------------------------------------------

PROMPT='${fg[green]}}[%n@%m:%d]${reset_color} %#

'

PROMPT="${fg[green]}[%n@%m:%d]${reset_color} %#
"

setenv DISPLAY 172.29.51.57:0.0

file size limit

limit filesize 20000000
alias ls=' ls -F --color=auto'
alias ll='ls -lh'
alias 1='ls -1'
alias la='ls -lha'
alias ltr='ls -lhtr'
alias lsr='ls -lhSr'
alias rm='rm -i'
alias mv='mv -i'
alias cp='cp -ip'
alias ssh='ssh -X'
alias xterm='xterm -s &'
alias ssh='ssh -X'
alias dirs='dirs -v'
alias py3='python3'
alias count='ls -1 | wc -l'
alias grepr='grep -r'
alias tmux='tmux -2'

alias tmuxk = 'tmux kill-session'

alias vim --servername HOGE --remote hoge.tx

#alias simvision='simvision -layout normal'

key bind

stty erase '^?'
stty erase '^H'

DELETE key

bindkey "^[[3~" delete-char

HOME key

bindkey "^[[1~" beginning-of-line

END key

bindkey "^[[4~" end-of-line

function csv_kirei() {
column -s, -t < $@ | less -#5 -N -S
}
alias csv='csv_kirei'

Vim Server

function v() {
vim --servername main --remote $*
}

Plugins

if [[ -f $HOME/.zsh/plugins.zsh ]]; then
source $HOME/.zsh/plugins.zsh
fi

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?