forked from driesvints/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
64 lines (51 loc) · 1.93 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
# dotfiles 경로
export DOTFILES=$HOME/.DOTFILES
export ZSH="$HOME/.oh-my-zsh"
DEFAULT_USER="$USER"
ZSH_THEME="agnoster"
# Uncomment one of the following lines to change the auto-update behavior
zstyle ':omz:update' mode auto # update automatically without asking
# Uncomment the following line if you want to change the command execution time
HIST_STAMPS="yyyy-mm-dd"
# Would you like to use another custom folder than $ZSH/custom?
ZSH_CUSTOM=$DOTFILES
# Which plugins would you like to load?
# Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
plugins=(git zsh-syntax-highlighting zsh-autosuggestions alias-tips)
source $ZSH/oh-my-zsh.sh
# Locale 설정
export LC_ALL=ko_KR.UTF-8
export LANG=ko_KR.UTF-8
# History 설정
HISTTIMEFORMAT="[%d.%m.%y] %T "
export HISTSIZE=10000
export HISTTIMEFORMAT
# Git Username/Email 설정
git config --global user.name "taking"
git config --global user.email "[email protected]"
# Git Logs 설정
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
git config --global alias.lga "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --all"
# Git Delta 설정
git config --global core.pager "delta"
git config --global interactive.diffFilter "delta --color-only"
git config --global merge.conflitstyle "diff3"
git config --global diff.colorMoved "default"
git config --global delta.navigate true
git config --global delta.line-numbers true
git config --global delta.side-by-side true
# home / end 키 설정
case $TERM in (xterm*)
bindkey "^[OH" beginning-of-line
bindkey "^[OF" end-of-line
esac
mc () {
if [ $# -ne 1 ]; then
echo 'usage: mc <dir-name>'
return 137
fi
# 폴더 생성 후 폴더로 진입
local dir_name="$1"
mkdir -p "$dir_name" && cd "$dir_name"
}