-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshenv
67 lines (60 loc) · 2.24 KB
/
.zshenv
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
export UPDATE_ZSH_DAYS=7
export PATH="$PATH:$HOME/.vim/bundle/vim-superman/bin"
# probably comment this in pc
export PATH="$PATH:$HOME/.local/bin"
export PATH="$PATH:$HOME/.cargo/bin"
export ANDROID_SDK_ROOT=$HOME/Android/Sdk
export PATH="$PATH:$ANDROID_SDK_ROOT/emulator"
export PATH="$PATH:$ANDROID_SDK_ROOT/platform-tools"
export PATH="$HOME/go/bin:$PATH"
export XPLR_BOOKMARK_FILE="$HOME/.config/xplr/bookmarks"
export GPG_TTY=$(tty)
# dotnet stuff
export LD_LIBRARY_PATH="/usr/local/lib"
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
export EDITOR="/usr/bin/nvim"
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/keyring/ssh"
export KEYTIMEOUT=200
bindkey -v
# ALIASES
alias gh="cd $HOME"
alias cfg="$FM $HOME/.config/"
alias cz="cd ~ && cd \$(find * -type d | fzf)"
alias cr="cargo run --"
alias v="$EDITOR"
alias hx="helix"
alias fm="clifm"
alias fmr="xplr"
alias mz="ncmpcpp"
alias screen="maim -s | xclip -selection clipboard -t image/png"
alias cl="clear"
alias rf="clear && macchina"
alias tat="tmux attach"
alias key="source $HOME/Scripts/ssh-agent.sh"
alias r="ranger"
alias tm="tmux"
alias zm="zellij -s main"
alias xpic="xclip -sel clipboard -t image/png"
alias update="cargo install $(cargo install --list | grep -E '^[a-z0-9_-]+ v[0-9.]+:$' | cut -f1 -d' ') && sudo pacman -Syu"
alias rwork="rsync -avzx -e 'ssh -p 6661' $HOME/work [email protected]:/volume1/NetBackup/$(hostname)"
alias btw="macchina"
alias sqld="docker container run -d --name sqld -v sqld-data:/var/lib/sqld \
-p 127.0.0.1:8080:8080 libsql/sqld:latest"
# config aliases
alias vrc="$EDITOR $HOME/.config/nvim"
alias zrc="$EDITOR $HOME/.zshrc"
alias zenv="$EDITOR $HOME/.zshenv"
alias tmrc="$EDITOR $HOME/.tmux.conf"
# git aliases
alias gt="git tree"
alias gac="git allcommit"
alias grst="git reset"
alias gRST="git reset --hard && git clean -fd"
alias gmnc="git merge --no-commit"
alias gcom="git checkout master"
alias qmkf="git checkout master && git fetch upstream && git pull upstream master && git push origin master"
# yadm aliases
alias y="yadm"
alias yst="yadm status"
alias ydot="$EDITOR $HOME/.local/share/yadm/repo.git/config"
alias pdocker="docker run -e HOME=/tmp -v $HOME/.config/planetscale:/tmp/.config/planetscale --user $(id -u):$(id -g) --rm -it -p 3306:3306/tcp planetscale/pscale:latest"