-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_aliases
56 lines (48 loc) · 1.48 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
56
# ALIAS
# --START-- DIRECTORY TRAVERSAL
alias ls='ls --color'
alias ll='ls -la'
alias ..='cd ..'
alias 2..='cd ../..'
alias 3..='cd ../../../'
alias dots='cd ~/dotfiles'
alias scripts='cd ~/scripts'
alias cookbook='cd ~/CookBook'
alias boilerplate='cd ~/boilerplates'
# -- END -- DIRECTORY TRAVESAL
# -- START -- PYTHON
alias python='python3'
alias pip='pip3'
# -- END -- PYTHON
# -- START -- GIT
alias gstatus='git status'
alias grestore='git restore --staged'
alias gpush="git push"
alias gclone="git clone"
alias gadd='git add .'
# -- END -- GIT
# -- START -- CLEANERS
alias fatman='sudo rm -rf .* * 2>/dev/null'
alias redrum='kill -n 9 $(jobs -p)'
# -- END -- CLEANERS
# -- START -- HELPERS | MISC.
alias tmp='cd /tmp && ls /tmp'
alias pdir='mkdir -p'
alias ssh='ssh -xC'
alias note='touch $(date +%m-%d-%y).md'
alias dnote='mkdir $(date +%m-%d-%y)'
alias readme='touch README.md'
alias ereadme='open $(alias readme | cut -c 21-29)' # open README.md in default editor
alias bs='mkdir /tmp/bull.shit 2>/dev/null; cd /tmp/bull.shit'
# --
export TERM=xterm-256color
# -- END -- HELPERS | MISC.
# -- START -- MAINTENANCE
alias fix-screens='xrandr --output DP-5 --mode 1920x1080 && xrandr --output DP-5 --mode 2560x1440 -r 165'
alias bashrc='source ~/.bashrc'
alias upgrade='sudo apt update -y && sudo apt upgrade -y' # lazy and dangerous
alias updoot='cp .bash_aliases $HOME && bashrc' # only works if in dotfiles -- should be a script
# -- END -- MAINTENANCE
#===
# PATH
export PATH=$PATH:$HOME/.local/bin/