-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
39 lines (30 loc) · 852 Bytes
/
.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
# Note: this file belongs to the root directory
# alternatively, a symlink can be used
# path to oh my zsh
export ZSH="$HOME/.oh-my-zsh"
# theme
ZSH_THEME="avit"
# case sensitive completion
CASE_SENSITIVE="false"
# list of plugins
# other than git, plugins need to be installed externally
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
# source oh my zsh
source $ZSH/oh-my-zsh.sh
# run "ls" on directory change
function chpwd() {
emulate -L zsh
ls
}
# aliases
alias vi=nvim
alias vim=nvim
alias neovim=nvim
alias sudo=doas
alias clear="clear; macchina; ls"
# nvm (https://github.com/nvm-sh/nvm)
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" --no-use
# run macchina and show the home directory
macchina
ls