forked from aaronlevy/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 2
/
_bash_aliases
22 lines (18 loc) · 905 Bytes
/
_bash_aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Tell tmux to use 256 colors
alias tmux='tmux -2'
# Pantheon specific
alias ygg_restart='cd /etc/systemd/system; systemctl restart yggdrasil_rest_*; cd -'
alias ygg_status='cd /etc/systemd/system; systemctl status yggdrasil_rest_*; cd -'
alias val_restart='cd /etc/systemd/system; systemctl restart valhalla_4*; cd -'
alias val_status='cd /etc/systemd/system; systemctl status valhalla_4*; cd -'
alias status='systemctl status'
alias start='systemctl start'
alias stop='systemctl stop'
alias restart='systemctl restart'
alias failed='systemctl --failed --full'
alias units='systemctl --full --all'
alias sc='systemctl'
alias json='python -mjson.tool'
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
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$//'\'')"'