.zshrc
~/.zshrc
の中身を不定期に吐き出す。
今回はMac用。
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=5000
SAVEHIST=3000
bindkey -e
zstyle :compinstall filename '/home/ユーザ名/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
setopt ignore_eof
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
autoload -U colors ; colors
PROMPT="%{$fg[green]%}%m@%n[%h]%#%{$reset_color%} "
RPROMPT="%{$fg[green]%}[%(5~,%-2~/.../%2~,%~)]${WINDOW:+"[$WINDOW]"}%{$reset_color%}"
preexec () {
if [[ "$TERM" == "screen" ]]; then
local CMD=${1[(wr)^(*=*|sudo|-*)]}
echo -ne "\ek$CMD\e\\"
fi
}
alias grep="grep --color=auto"
alias egrep="egrep --color=auto"
export LSCOLORS=Gxfxcxdxbxegedabagacad
alias ls="ls -F -G"
# 追加
setopt interactivecomments
# 以下debug用
export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"
export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"
export CFLAGS="-Wno-error=implicit-function-declaration"
参考:
https://blog.y-yuki.net/entry/2020/06/21/003000
.vimrc
set number
set cursorline
set cursorcolumn
highlight CursorColumn ctermbg=blue
set expandtab
set tabstop=4