generated from LazyVim/starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc-e
72 lines (58 loc) · 1.51 KB
/
zshrc-e
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
67
68
69
70
71
72
# PATH
export PATH="/usr/local/opt/openjdk/bin:$PATH"
export PATH="/usr/local/bin/try:$PATH"
# util-linux
export PATH="/usr/local/opt/util-linux/bin:$PATH"
export PATH="/usr/local/opt/util-linux/sbin:$PATH"
export PATH="/usr/local/opt/llvm/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/util-linux/lib"
export CPPFLAGS="-I/usr/local/opt/util-linux/include"
export PKG_CONFIG_PATH="/usr/local/opt/util-linux/lib/pkgconfig"
# WORKDIR
export d="$HOME/git"
# DOTFILES FOLDER
export DOTS="$HOME/dotfiles"
# zoxide
eval "$(zoxide init zsh)"
# starship
eval "$(starship init zsh)"
# thefuck
eval $(thefuck --alias)
# lsd
alias ls='lsd'
alias l='ls -l'
alias la='ls -a'
alias lla='ls -la'
alias lt='ls --tree'
# git
alias gka='gitk --all & disown'
# lazygit
lg()
{
export LAZYGIT_NEW_DIR_FILE=~/.lazygit/newdir
lazygit "$@"
if [ -f $LAZYGIT_NEW_DIR_FILE ]; then
cd "$(cat $LAZYGIT_NEW_DIR_FILE)"
rm -f $LAZYGIT_NEW_DIR_FILE > /dev/null
fi
}
# fzf
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export FZF_DEFAULT_OPTS=" \
--color=bg+:#313244,bg:#1e1e2e,spinner:#f5e0dc,hl:#f38ba8 \
--color=fg:#cdd6f4,header:#f38ba8,info:#cba6f7,pointer:#f5e0dc \
--color=marker:#f5e0dc,fg+:#cdd6f4,prompt:#cba6f7,hl+:#f38ba8"
# tmux
launch() {
if [[ -z $TMUX ]]; then
"$HOME/.config/tmux/tmux_launch.sh"
else
tmux popup -EE -w 60% -h 60% "$HOME/.config/tmux/tmux_launch.sh"
fi
}
# nvim
alias nano=nvim
alias vim=nvim
# moving around in the terminal
bindkey "^[[1;3C" forward-word
bindkey "^[[1;3D" backward-word