-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
55 lines (42 loc) · 1.11 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
export ZSH=$HOME/.oh-my-zsh
ZSH_THEME="agnoster"
plugins=(git \
sudo \
zsh-autosuggestions)
source $ZSH/oh-my-zsh.sh
# Alias
alias .3="../../../"
alias .2="../../"
alias sl="ls"
alias lq="ls"
alias ll="ls -alF"
alias la="ls -A"
alias l="ls -CF"
alias db="dune build"
alias dc="dune clean"
alias dr="dune runtest"
alias grc="git rebase --continue"
alias gra="git rebase --abort"
alias tezt="dune exec tezt/tests/main.exe -- "
# Dirty
alias emacs-rust="emacs -q --load /home/valentin/Documents/emacs-rust-config/standalone.el"
# Functions from alias
mkcd () {
mkdir -p -- "$1" &&
cd -P -- "$1"
}
# Env
. "$HOME/.profile"
# Run the starship prompt
eval "$(starship init zsh)"
# opam configuration
test -r /home/valentin/.opam/opam-init/init.zsh && . /home/valentin/.opam/opam-init/init.zsh > /dev/null 2> /dev/null || true
export PATH="$HOME/.poetry/bin:$PATH"
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)"
fi
autoload -U +X bashcompinit && bashcompinit
complete -o nospace -C /usr/bin/terraform terraform
. "$HOME/.nvm/nvm.sh"