summaryrefslogtreecommitdiff
path: root/.bash_aliases
blob: 54386b0c59bb4919a67fafc8ad875330aa232d49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Set some custom alias
alias weather2='curl http://wttr.in'
alias fortune="fortune > ~/.last_fortune.txt; cat ~/.last_fortune.txt | cowsay; cat ~/.last_fortune.txt | espeak"
alias youtube-dl-album='youtube-dl -x --audio-format mp3 -o "~/Music/%(playlist)s/%(playlist_index)s-%(title)s.%(ext)s"'
alias youtube-dl-song='youtube-dl -x --audio-format mp3 -o "~/Music/%(title)s.%(ext)s"'
alias moon='curl http://wttr.in/Moon'
alias loopback="pacmd load-module module-loopback latency_msec=250"
alias unloopback="pacmd unload-module module-loopback"
alias rm="rm -i"
alias notes="vim ~/txt/notes-$(date +%F).md"
alias show="pandoc ~/txt/notes-$(date +%F).md > /tmp/output.html; firefox /tmp/output.html"
alias du="ncdu -rr"
alias backup='bash ~/Scripts/Bash/backup.sh'
alias vimtab='vim -c "so ~/.vimtabrc"'
alias dic='dict -d gcide'
alias ths='dict -d moby-thesaurus'
alias ll='ls -alFh'
alias la='ls -a'
alias l='ls -CF'
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'