-
Notifications
You must be signed in to change notification settings - Fork 0
/
.alias
109 lines (97 loc) · 3.4 KB
/
.alias
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# Common commands
alias grep="grep --color=auto"
alias diff="diff --color=auto"
alias up="sudo ip link set wlp3s0 up && sudo ip link set enp0s25 up"
alias down="sudo ip link set wlp3s0 down && sudo ip link set enp0s25 down"
alias ka="killall"
alias h="history"
alias c="clear"
alias p="cat"
alias null="/dev/null"
alias ga="git add *"
alias xx="xrdb ~/.Xresources"
alias p="sudo pacman"
alias yt="youtube-dl --add-metadata -i -o '%(upload_date)s-%(title)s.%(ext)s'"
alias YT="youtube-viewer"
alias pi="ssh pi@raspberrypi"
alias off="halt -p"
# alias vim="nvim"
alias v="nvim"
alias vimrc="nvim ~/.config/nvim/init.vim"
alias website="cd ~/Programming/Web/alexanderstephan.xyz/"
alias df='df -h'
alias al='nvim ~/.alias'
# Confirm before overwriting
alias cp='cp -i'
alias mv='mv -i'
alias rm='rm -i'
# Changing "ls" to "exa"
alias ls='exa' # my preferred listing
alias la='exa -a --color=always --group-directories-first' # all files and dirs
alias ll='exa -l --color=always --group-directories-first' # long format
alias lt='exa -aT --color=always --group-directories-first' # tree listing
alias l.='exa -a | egrep "^\."'
# Bat is a better cat
alias cat='bat'
# Navigation
alias ..='cd ..'
alias ...='cd ../..'
alias .3='cd ../../..'
alias .4='cd ../../../..'
alias .5='cd ../../../../..'
# File paths
alias tum='cd ~/TUM'
alias rechnerhalle='ssh [email protected]'
alias dev='cd ~/Programming'
alias website='cd ~/Programming/Web/alexanderstephan.xyz/'
# Paths for winter term 2021
alias gbs='cd ~/TUM/WS21/GBS/'
alias anal='cd ~/TUM/WS21/ANAL/'
alias epub='cd ~/TUM/WS21/EPUB/'
alias fpv='cd ~/TUM/WS21/FPV/'
alias db='cd ~/TUM/WS21/GDB/'
alias med1='cd ~/TUM/WS21/MED1'
# Paths for summer term 2021
alias grnvs='cd ~/TUM/SS21/GRNVS/'
alias gprog='cd ~/TUM/SS21/GRNVS/u1590/assignment4'
alias eist='cd ~/TUM/SS21/EIST/'
alias med2='cd ~/TUM/SS21/MED2/'
alias dwt='cd ~/TUM/SS21/DWT/'
alias theo='cd ~/TUM/SS21/THEO/'
alias hiwi='cd ~/TUM/SS21/HIWI/'
alias skript='cd ~/TUM/SS21/HIWI/gbs-skript/skript/'
# System updates
alias up='sudo aura -Syyu'
alias aurup='sudo aura -Ayyu'
alias mirrors='sudo pacman-mirrors --fasttrack && sudo pacman -Syyu'
# Get top process eating memory
alias psmem='ps auxf | sort -nr -k 4'
alias psmem10='ps auxf | sort -nr -k 4 | head -10'
# Get top process eating cpu ##
alias pscpu='ps auxf | sort -nr -k 3'
alias pscpu10='ps auxf | sort -nr -k 3 | head -10'
# Git
alias addup='git add -u'
alias addall='git add .'
alias branch='git branch'
alias checkout='git checkout'
alias cl='git clone'
alias commit='git commit -m'
alias fetch='git fetch'
alias pull='git pull origin'
alias push='git push origin'
alias stat='git status' # 'status' is protected name so using 'stat' instead
alias tag='git tag'
alias newtag='git tag -a'
alias pall='git add . && git commit -m "ILoveEIST" && git push'
alias track=' git ls-tree -r master --name-only'
# youtube-dl
alias yta-aac="youtube-dl --extract-audio --audio-format aac "
alias yta-best="youtube-dl --extract-audio --audio-format best "
alias yta-flac="youtube-dl --extract-audio --audio-format flac "
alias yta-m4a="youtube-dl --extract-audio --audio-format m4a "
alias yta-mp3="youtube-dl --extract-audio --audio-format mp3 "
alias yta-opus="youtube-dl --extract-audio --audio-format opus "
alias yta-vorbis="youtube-dl --extract-audio --audio-format vorbis "
alias yta-wav="youtube-dl --extract-audio --audio-format wav "
alias ytv-best="youtube-dl -f bestvideo+bestaudio "