-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_aliases
55 lines (44 loc) · 1.52 KB
/
.bash_aliases
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
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
alias ..="cd .."
alias l='ls -CF'
alias sl='ls'
alias ll='ls -l'
alias la='ls -A'
alias lla='ls -lA'
alias lls='ls -l'
alias time='time -p'
alias pingg='ping 8.8.8.8'
alias i3conf='vim ~/.i3/config'
alias reload_Xre='xrdb -load ~/.Xresources'
# shellcheck disable=SC2154
alias sscrot='scrot -s -e "mv \$f ~/pictures/screenshots"'
alias de='deactivate'
alias mk='pyenv virtualenvwrapper && mkvirtualenv'
alias pip_upgrade_all='pip freeze | cut -d = -f 1 | xargs pip install -U'
alias rm_pyc="find . -type d -name __pycache__ \
-o \( -type f -name '*.py[co]' \) -print0 \
| xargs -0 rm -rf"
alias add_ssh_key='bash ~/dotfiles/bin/add_ssh_key.sh'
alias toggle_trackpad='bash ~/dotfiles/bin/toggle_trackpad.sh'
alias gi='git'
alias gt='cd "$(git rev-parse --show-toplevel)"'
alias dr='docker'
alias docker-compose='docker compose'
alias dc='docker compose'
alias dc_run='docker compose run --rm'
alias tm='tmux'
alias tat='tmux attach -t'
alias xrandr_home="xmodmap ~/.Xmodmap \
&& xrandr \
--output DP2-2 --mode 1920x1200 --pos 0x0 \
--output eDP1 --mode 1920x1080 --pos 1990x0"
alias xrandr_home2="xmodmap ~/.Xmodmap \
&& xrandr \
--output DP2-2 --auto --left-of eDP1"
alias xrandr_notebook="xmodmap ~/.Xmodmap && xrandr --output eDP1 --auto"