Permalink
Browse files

modified systemd functions

  • Loading branch information...
1 parent 249ba98 commit be049a453fdbf1ba9ef693507c75776dc58c6461 @graysky2 committed Oct 26, 2012
Showing with 8 additions and 6 deletions.
  1. +7 −5 dotfiles/.functions
  2. +1 −1 etc/vimrc
View
@@ -1,12 +1,14 @@
# systemd shortcuts
-listd() { ls -l /etc/systemd/system/multi-user.target.wants; }
-start() { sudo systemctl start $1.service ; sudo systemctl status $1.service; }
-restart() { sudo systemctl restart $1.service ; sudo systemctl status $1.service; }
-stop() { sudo systemctl stop $1.service ; sudo systemctl status $1.service; }
+start() { sudo systemctl start $1.service ; sleep 2s ; sudo systemctl status $1.service; }
+restart() { sudo systemctl restart $1.service ; sleep 2s ; sudo systemctl status $1.service; }
+stop() { sudo systemctl stop $1.service ; sleep 2s ; sudo systemctl status $1.service; }
+
enable() { sudo systemctl enable $1.service ; ls -l /etc/systemd/system/multi-user.target.wants; }
-status() { sudo systemctl status $1.service; }
disable() { sudo systemctl disable $1.service ; ls -l /etc/systemd/system/multi-user.target.wants; }
+listd() { ls -l /etc/systemd/system/multi-user.target.wants; }
+status() { sudo systemctl status $1.service; }
+
# fix zsh annoying history behavior
h() { if [ -z "$*" ]; then history 1; else history 1 | egrep "$@"; fi; }
View
@@ -11,7 +11,7 @@
runtime! archlinux.vim
" If you prefer the old-style vim functionalty, add 'runtime! vimrc_example.vim'
-" Or better yet, read /usr/share/vim/vim72/vimrc_example.vim or the vim manual
+" Or better yet, read /usr/share/vim/vim73/vimrc_example.vim or the vim manual
" and configure vim to your own liking!
syntax on

0 comments on commit be049a4

Please sign in to comment.