forked from itsnayeem/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_bash_aliases
More file actions
15 lines (11 loc) · 733 Bytes
/
_bash_aliases
File metadata and controls
15 lines (11 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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 pyinotify_restart='cd /etc/systemd/system; systemctl restart pyinotify_*; cd -'
alias pyinotify_status='cd /etc/systemd/system; systemctl status pyinotify_*; cd -'
alias onebox_chef='cd /opt/titan/chef; chef-solo -j onebox.json; cd -'
# 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$//'\'')"'