Skip to content

Instantly share code, notes, and snippets.

@mollifier
Last active August 16, 2020 09:51
Show Gist options
  • Star 19 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save mollifier/4964803 to your computer and use it in GitHub Desktop.
Save mollifier/4964803 to your computer and use it in GitHub Desktop.
シンプルな zshrc
# シンプルな zshrc
# License : MIT
# http://mollifier.mit-license.org/
# 環境変数
export LANG=ja_JP.UTF-8
# 補完機能を有効にする
autoload -Uz compinit
compinit
# cd したら自動的にpushdする
setopt auto_pushd
# 重複したディレクトリを追加しない
setopt pushd_ignore_dups
# グローバルエイリアス
alias -g L='| less'
alias -g G='| grep'
# ヒストリの設定
HISTFILE=~/.zsh_history
HISTSIZE=1000000
SAVEHIST=1000000
# emacs 風キーバインドにする
bindkey -e
# 日本語ファイル名を表示可能にする
setopt print_eight_bit
# beep を無効にする
setopt no_beep
# フローコントロールを無効にする
setopt no_flow_control
# Ctrl+Dでzshを終了しない
setopt ignore_eof
# '#' 以降をコメントとして扱う
setopt interactive_comments
# vim:set ft=zsh :
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment