Skip to content

Instantly share code, notes, and snippets.

@kght6123
Created July 28, 2020 14:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kght6123/eb90652fa7810b1145654f0c1c9a5df5 to your computer and use it in GitHub Desktop.
Save kght6123/eb90652fa7810b1145654f0c1c9a5df5 to your computer and use it in GitHub Desktop.
おれおれzsh
# Created by newuser for 5.7.1
PROMPT='%~ %# '
autoload -U compinit && compinit -u
git config --global color.ui auto
setopt auto_pushd
setopt share_history
setopt hist_ignore_dups
setopt hist_ignore_all_dups
setopt hist_ignore_space
setopt hist_reduce_blanks
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
zstyle ':completion:*:default' menu select=1
setopt correct
setopt auto_pushd
setopt pushd_ignore_dups
setopt extended_glob
WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'
HISTFILE=~/.zsh_history
HISTSIZE=100000
SAVEHIST=100000
setopt auto_cd
autoload -Uz colors
colors
@kght6123
Copy link
Author

ubuntuでデフォルトシェルをzshにするとき

apt-get install zsh
sudo chsh ${USER}

ユーザ指定がないと、chsh: PAM: Authentication failure が表示されて失敗する

chshはrootユーザじゃないと、実行できない?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment