/
.zshrc
99 lines (71 loc) · 2.24 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# Path to your oh-my-zsh installation.
export ZSH=/home/sajjad/.oh-my-zsh
ZSH_THEME="eastwood"
# Custom, custom folder
ZSH_CUSTOM=/home/sajjad/src/git/dot-files/zsh-custom/
#plugins=(git jump flutter cargo golang stack yarn history-substring-search)
plugins=(git jump flutter cargo golang yarn mix-fast history-substring-search)
export DISABLE_AUTO_UPDATE="true"
source $ZSH/oh-my-zsh.sh
unset DISABLE_AUTO_UPDATE
# User configuration
# File manager key bound (Alt+Left/Up)
cdUndoKey() {
popd
zle reset-prompt
echo
ls
zle reset-prompt
}
cdParentKey() {
pushd ..
zle reset-prompt
echo
ls
zle reset-prompt
}
zle -N cdParentKey
zle -N cdUndoKey
bindkey '^[[1;3A' cdUndoKey
bindkey '^[[1;3D' cdParentKey
# Variables
export LANG=en_US.UTF-8
export PATH=$PATH:~/bin/
export PATH=$PATH:~/.gem/ruby/2.5.0/bin/
# Aliases
alias gstat="git status" gadd="git add" gcom="git commit -m" gpush="git push" gpull="git pull"
alias ls='ls -v --color=tty'
alias vim=nvim
export WORKON_HOME=$HOME/.virtualenvs
source /usr/bin/virtualenvwrapper.sh
export EDITOR=nvim
alias emacs='emacsclient -n -a ""'
alias emacs-win='emacsclient -n -c -a ""'
alias em=emacs
alias :q=exit
export GEM_HOME=$HOME/.gem
if which ruby >/dev/null && which gem >/dev/null; then
PATH="$(ruby -r rubygems -e 'puts Gem.user_dir')/bin:$PATH"
fi
export PATH=$PATH:/home/sajjad/App/mendeleyBibFix
export PATH=$PATH:/home/sajjad/.dotnet/tools
alias adb=/opt/android-sdk/platform-tools/adb
alias emulator=/opt/android-sdk/emulator/emulator
export PATH=$PATH:/opt/flutter/bin/cache/dart-sdk/bin
# tabtab source for packages
# uninstall by removing these lines
[[ -f ~/.config/tabtab/__tabtab.zsh ]] && . ~/.config/tabtab/__tabtab.zsh || true
export RUMI_PATH=~/.local/share/rumi/
export PATH=$PATH:~/.local/share/rumi/bin/
# Issue with cargo completion
compinit
# direnv
# eval "$(direnv hook zsh)"
# dotnet?
# export MSBuildSDKsPath=$( echo /usr/share/dotnet/sdk/3.*/Sdks );
export PATH=$PATH:~/.cargo/bin/
export PATH=$PATH:~/.idris2/bin/
# opam configuration
test -r /home/sajjad/.opam/opam-init/init.zsh && . /home/sajjad/.opam/opam-init/init.zsh > /dev/null 2> /dev/null || true
# stack
export PATH="~/.local/bin:$PATH"