-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zsh-aliases
26 lines (24 loc) · 927 Bytes
/
.zsh-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
## Aliases
# display the last mount of a device, usually a USB key
alias lsext='dmesg | grep "\[sd" | tail -1'
# use grc when available:
if [ -f /usr/bin/grc ]; then
alias colourify="/usr/bin/grc -es --colour=auto"
alias configure='colourify ./configure'
alias diff='colourify diff'
alias make='colourify make'
alias gcc='colourify gcc'
alias g++='colourify g++'
alias as='colourify as'
alias gas='colourify gas'
alias ld='colourify ld'
alias netstat='colourify netstat'
alias ping='colourify ping'
alias traceroute='colourify /usr/sbin/traceroute'
fi
alias pomodoro='p-timer.sh 25 "Pomodoro" "Pomodoro started, you have 25 minutes left" "Pomodoro ended. Please stop the work and take a short break"'
alias monoff='xset dpms force off'
alias fuck='sudo'
alias please='sudo'
# Suffix aliases to open files based on their extension (mostly maps to xdg-open)
alias -s pdf=xdg-open