forked from bohoomil/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bash_aliases
110 lines (96 loc) · 3.49 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
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
# vim:ft=sh
# Normal aliases
alias ls="BLOCK_SIZE=\'1 ls -F --color=auto" #thousands grouping
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias lsd='ls -l --sort=t'
alias lss='ls++'
alias f='find |grep'
alias dir='dir --color=auto'
alias grep="grep --color=auto"
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias hist="grep '$1' /home/bohoomil/.bash_history"
alias irssi="irssi -c irc.freenode.net -n yyz"
alias mem="free -m"
alias IP='$HOME/.local/bin/iploc.sh'
alias info='pinfo'
alias dmesg='dmesg -L -H --reltime'
alias adobe-air="schroot -p -- adobe-air"
alias bc='bc -l'
alias hd='df -h -t ext4'
alias su='su -'
alias iftop='sudo iftop -c ~/.iftop.conf'
alias mupdf='mupdf -b 8'
alias ytdl480="youtube-dl -f mp4 --max-quality=35 -t"
alias ytdl720="youtube-dl -f mp4 --max-quality=22 -t"
alias ytdl1080="youtube-dl -f mp4 --max-quality=37 -t"
alias oo="/usr/bin/xdg-open"
alias gparted='urxvtc -geometry "70x10" -e sh -c "sudo gparted"'
alias manl='PAGER='\''less -X'\'' man'
alias manv='PAGER=vimpager man'
alias wine='schroot -pqd "$(pwd)" -- wine'
alias homer="ssh [email protected]"
alias bkp_sftp='sftp -F ~/.ssh_config [email protected]'
# pm
alias shut='sudo poweroff'
# devel
alias pacman='sudo pacman'
alias latexmk='latexmk -xelatex -pvc -interaction=nonstopmode'
## dwm settings
alias dwmrc="cd /mnt/sda2/arch-pkgs/abs/dwm.xft && vim config.h && makepkg -f -irc && cd"
# Mounts
alias ua='devmon --unmount-all --no-gui'
alias um='udevil mount'
alias uu='udevil umount'
# Places
alias bkp='cd /mnt/sda2/BACKUP'
alias eb='cd /mnt/sda3/documents/eBooks'
alias not='cd /mnt/sda3/documents/0_notes'
alias vid='cd /mnt/sda3/videos'
alias doc='cd /mnt/sda3/documents'
alias rec='cd /mnt/sda3/recent'
alias pro='cd /mnt/sda2/projects'
alias pic='cd /mnt/sda3/pictures'
alias dw='cd /mnt/sda3/downloads'
alias ib='cd /mnt/sda2/ib-build'
alias pkg='cd /mnt/sda2/arch-pkgs'
alias bin='cd /home/bohoomil/.local/bin'
alias cd1='cd /home/bohoomil'
alias cd2='cd /mnt/sda2'
alias cd3='cd /mnt/sda3'
# VPN
alias vpnu='sudo systemctl start [email protected]'
alias vpnd='sudo systemctl stop [email protected]'
alias vpnr='sudo systemctl restart [email protected]'
alias netspeedwlp='netspeed.sh wlp2s0'
# hg
alias hgp='hg pull'
alias hgu='hg update'
# cue2tracks
# *.cue file = CDImage.cue
alias cuefl='cue2tracks -C -c flac -o "%N %t" *.cue'
alias cueflr='cue2tracks -CR -c flac -o "%N %t" *.cue'
alias cuemp3='cue2tracks -C -c mp3 -B 320 -o "%N %t" *.cue'
alias cuemp3r='cue2tracks -CR -c mp3 -B 320 -o "%N %t" *.cue'
alias ripcue='abcde -1 -o flac -a default,cue'
# tagging
# flac & mp3
alias tagmp3="mp3info -x"
alias tagflac="metaflac --show-tag=TITLE --show-tag=ARTIST --show-tag=ALBUM --show-tag=TRACKNUMBER --show-tag=GENRE --show-tag=COMMENT --show-tag=DATE --show-sample-rate --show-channels"
#Show progress while file is copying
# Rsync options are:
# -p - preserve permissions
# -o - preserve owner
# -g - preserve group
# -h - output in human-readable format
# --progress - display progress
# -b - instead of just overwriting an existing file, save the original
# --backup-dir=/tmp/rsync - move backup copies to "/tmp/rsync"
# -e /dev/null - only work on local files
# -- - everything after this is an argument, even if it looks like an option
alias cpv="rsync -poghb --backup-dir=/tmp/rsync -e /dev/null --progress --"
alias mvv="rsync -av --progress -h --remove-source-files"
alias rsync-update="rsync -avu --progress -h"
alias rsync-synchronize="rsync -avu --delete --progress -h"