blob: 74b38c0a2880d551fd7d23321928bda7ec6eef7e (
plain)
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
|
# Generic aliases
alias ls="ls --color=auto"
alias ll="ls --color=auto -lh"
alias la="ls --color=auto -lha"
alias grep="grep --color=auto"
alias gvim="vim.gtk -g &> /dev/null"
alias music="ncmpcpp"
alias mkdir="mkdir -p"
alias today="date +%Y%m%d"
alias month="date +%Y%m"
alias now="date +%Y%m%d%I%M%S"
alias hashpw="mkpasswd -m sha-512"
alias stitle="screen -X title"
alias ttitle="tmux rename-window"
alias q="exit"
alias open="xdg-open"
alias search="surfraw duckduckgo -browser=lynx"
alias tlynx="torify lynx"
alias tw3m="torify w3m"
alias poff="sudo poweroff"
alias poweroff="sudo poweroff"
alias hibernate="sudo s2disk"
alias jheader="jhead -dc -de -di -dx -du"
alias vga="xrandr --output VGA-1"
alias qemu="kvm -m 2048 -net nic,model=virtio -net user"
alias showip="curl showip.net 2> /dev/null | cut -f 1 | nslookup"
alias ssh-unsafe="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
alias tails="kvm -m 2048 -cdrom ~/data/distros/tails/tails-amd64-latest.iso"
alias kobo="lftp sftp://kobo/mnt/sd"
alias metar="weather"
alias cdcd="cd .. && cd -"
alias pass="keyringer default"
# Timew Warrior
alias timelog="timew"
alias track="timew track"
alias summary="timew summary"
alias start="timew start"
alias stop="timew stop"
alias tag="timew tag"
alias untag="timew untag"
alias timewarrior="timew"
# See https://wiki.archlinux.org/index.php/Display_Power_Management_Signaling
alias blankoff="xset s off -dpms ; xset s noblank"
alias blankon="xset s on +dpms ; xset s blank"
# Version contron aliases
alias fetch="mr fetch"
alias ft="fetch"
alias st="status"
alias gs="git status"
alias gd="git diff"
alias gl="git log"
alias co="commit"
alias tig="tig --all"
alias upsup="up ; sup"
# Calendar
alias xcal="xcal.rb"
# Shell aliases
alias s="shell"
# Editor, avoiding "Avoiding protocol specified" error
#alias vim="vim -X"
#alias vi="vim -X"
# Development
#alias dscverify='dscverify --keyring ~/code/debian/keyring/debian-keyring.gpg --keyring /path/to/debian/keyring/keyrings/debian-maintainers.gpg'
alias dquilt="quilt --quiltrc=${HOME}/.quiltrc-dpkg"
alias dpkg-source='HOME=~/code/debian/keyring dpkg-source'
alias dget='HOME=~/code/debian/keyring dget'
# JSON
# See https://stackoverflow.com/questions/352098/how-can-i-pretty-print-json-in-a-shell-script#1920585
prettyjson_string() {
echo "$1" | python -m json.tool
}
prettyjson_file() {
python -m json.tool "$1"
}
prettyjson_url() {
curl "$1" | python -m json.tool
}
|