-
Notifications
You must be signed in to change notification settings - Fork 0
/
extra_zshrc.sh
executable file
·40 lines (34 loc) · 1020 Bytes
/
extra_zshrc.sh
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
alias rs="rsync -aHP --info=progress2 --info=stats3"
alias c="clear && clear"
alias u="sudo apt update && apt list --upgradable && sudo apt upgrade"
alias py="python3"
alias rmd="rm -rf"
alias t="tree -ah -I '.git' -I '*_venv'"
alias dfj="df -hx 'squashfs'"
alias dus="du -bhd 1 | sort -h"
alias bat="batcat --paging never"
# dstat
alias dst="dstat -am --swap"
# venv
alias create_venv="~/dotfiles/scripts/create_venv.sh"
alias run_in_venv="~/dotfiles/scripts/run_in_venv.sh"
# tmux
alias tl="tmux list-sessions"
alias ta="tmux attach"
alias tat="tmux attach -t"
# toggle tmux mouse mode
tm() {
if tmux show -g | grep -q "mouse on"; then
tmux set -g mouse off
echo "Tmux mouse mode off"
else
tmux set -g mouse on
echo "Tmux mouse mode on"
fi
}
# set nano as default editor
export EDITOR="nano"
# check if dotfiles-private exists and source it if it does
if [ -f ~/dotfiles/dotfiles-private/extra_zshrc.sh ]; then
source ~/dotfiles/dotfiles-private/extra_zshrc.sh
fi