Browse Source

Add handy reboot and poweroff aliases

Alois Mahdal 9 years ago
parent
commit
92eda4f6d8
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      dotfiles/bash/main.bashrc

+ 2
- 0
dotfiles/bash/main.bashrc View File

@@ -174,6 +174,8 @@ alias xi='xclip -i'
174 174
 alias xii='xclip -selection clipboard -i'
175 175
 alias xo='xclip -o'
176 176
 alias xoo='xclip -selection clipboard -o'
177
+alias reboot="echo -n . ; sync ; echo -n . ; sync ; echo -n . ; systemctl reboot"
178
+alias poweroff="echo -n . ; sync ; echo -n . ; sync ; echo -n . ; systemctl poweroff"
177 179
 
178 180
 RV_TMP="/tmp/bash-rv"
179 181
 mkdir -p "$RV_TMP"