-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
67 lines (51 loc) · 1.42 KB
/
.zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# パス
export PATH=/opt/homebrew/opt/coreutils/libexec/gnubin:$PATH
export PATH=/opt/homebrew/anaconda3/bin:$PATH
export PATH=$PATH:$HOME/.local/bin
export PATH=$PATH:/usr/local/sbin
export PATH=$PATH:/usr/local/texlive/2023/bin/universal-darwin
export PATH=$PATH:/usr/local/texlive/2023/bin/x86_64-linux
export PATH=$PATH:$HOME/.opam/default/bin
export PATH=$PATH:$HOME/.cargo/bin
export MANPATH=$MANPATH:/usr/local/texlive/2023/texmf-dist/doc/man
export INFOPATH=$INFOPATH:/usr/local/texlive/2023/texmf-dist/doc/info
export XDG_CONFIG_HOME=$HOME/.config
# 補完
autoload -U compinit
compinit
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
# 色
autoload -Uz colors
colors
export LSCOLORS=exfxcxdxbxegedabagacad
zstyle ':completion:*' list-colors ''
# 言語設定
export LANG=ja_JP.UTF-8
# プロンプト (いろいろ試してみる)
PROMPT="%{${fg[cyan]}%}%~ %{${reset_color}%}
%{${fg[yellow]}%}%n@%m$ %{${reset_color}%}"
# 履歴
HISTFILE=~/.zsh_history
HISTSIZE=100000
SAVEHIST=100000
setopt hist_ignore_dups
setopt share_history
# Emacs風キーバインド
bindkey -e
# cd周り
setopt auto_cd
setopt auto_pushd
# 修正
setopt correct
# 詰めて表示
setopt list_packed
# ビープ音を鳴らさない
setopt nolistbeep
# エイリアス
alias ls='ls -F --color'
alias ll='ls -laFh --color'
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export LANG="en_US.UTF-8"
# ssh-add
eval "$(ssh-agent)"
ssh-add ~/.ssh/id_ed25519