Skip to content

Instantly share code, notes, and snippets.

@techno-tanoC
Last active September 25, 2019 09:28
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 techno-tanoC/60f97c7037c3e248439f9b61159a2313 to your computer and use it in GitHub Desktop.
Save techno-tanoC/60f97c7037c3e248439f9b61159a2313 to your computer and use it in GitHub Desktop.
.zshrcの作りかけ
# Created by newuser for 5.7.1
# prompt
PROMPT='%(5~,%-1~/.../%2~,%~) %F{red}%B❯%b%f%F{yellow}%B❯%b%f%F{green}%B❯%b%f '
# before autoload
fpath=(~/.zsh/completion $fpath)
# enable completions
autoload -U compinit
compinit -u
setopt auto_list
setopt auto_menu
# colorize completions
autoload -U colors
# colors
# zstyle ':completion:*' list-colors "${LS_COLORS}"
# completion options
setopt complete_in_word
zstyle ':completion:*:default' menu select=1
zstyle ':completion::complete:*' use-cache true
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
# 日本語ファイル名を表示可能にする
setopt print_eight_bit
# beep を無効にする
setopt no_beep
# フローコントロールを無効にする
setopt no_flow_control
# Ctrl+Dでzshを終了しない
setopt ignore_eof
# '#' 以降をコメントとして扱う
setopt interactive_comments
# ディレクトリ名だけでcdする
setopt auto_cd
# cd したら自動的にpushdする
setopt auto_pushd
# 重複したディレクトリを追加しない
setopt pushd_ignore_dups
# 同じコマンドをヒストリに残さない
setopt hist_ignore_all_dups
# スペースから始まるコマンド行はヒストリに残さない
setopt hist_ignore_space
# ヒストリに保存するときに余分なスペースを削除する
setopt hist_reduce_blanks
# 高機能なワイルドカード展開を使用する
setopt extended_glob
# load histories
HISTFILE=$HOME/.zsh-history
HISTSIZE=1000000
SAVEHIST=1000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment