Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
graysky2 committed Oct 1, 2015
1 parent e22c1fc commit 952a3fb
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 19 deletions.
7 changes: 2 additions & 5 deletions dotfiles/.mplayer/config
@@ -1,6 +1,3 @@
subfont-autoscale=1
font=/usr/share/mplayer/subfont.ttf
osdlevel=3
nosub=1
# Write your default config options here!


heartbeat-cmd="xscreensaver-command -deactivate >&- 2>&- &" # for xscreensaver
38 changes: 24 additions & 14 deletions dotfiles/.zshrc
Expand Up @@ -62,23 +62,23 @@ listd() {
}

# systemlevel
start() { sudo systemctl start $1.service; }
stop() { sudo systemctl stop $1.service; }
restart() { sudo systemctl restart $1.service; }
status() { sudo systemctl status $1.service; }
enabled() { sudo systemctl enable $1.service; listd; }
disabled() { sudo systemctl disable $1.service; listd; }
start() { sudo systemctl start $1; }
stop() { sudo systemctl stop $1; }
restart() { sudo systemctl restart $1; }
status() { sudo systemctl status $1; }
enabled() { sudo systemctl enable $1; listd; }
disabled() { sudo systemctl disable $1; listd; }

Start() { sudo systemctl start $1.service; sudo systemctl status $1.service; }
Stop() { sudo systemctl stop $1.service; sudo systemctl status $1.service; }
Restart() { sudo systemctl restart $1.service; sudo systemctl status $1.service; }
Start() { sudo systemctl start $1; sudo systemctl status $1; }
Stop() { sudo systemctl stop $1; sudo systemctl status $1; }
Restart() { sudo systemctl restart $1; sudo systemctl status $1; }

# userlevel
ustart() { systemctl --user start $1.service; }
ustop() { systemctl --user stop $1.service; }
ustatus() { systemctl --user status $1.service; }
uenable() { systemctl --user enable $1.service; }
udisable() { systemctl --user disable $1.service; }
ustart() { systemctl --user start $1; }
ustop() { systemctl --user stop $1; }
ustatus() { systemctl --user status $1; }
uenable() { systemctl --user enable $1; }
udisable() { systemctl --user disable $1; }

# general aliases and functions
alias pg='echo "USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND" && ps aux | grep --color=auto'
Expand All @@ -90,6 +90,7 @@ alias wget='wget -c'
alias grep='grep --color=auto'
alias zgrep='zgrep --color=auto'
alias ma='cd /home/stuff/aur4'
alias na='cd /home/stuff/my_pkgbuild_files'
alias ls='ls --group-directories-first --color'
alias ll='ls -lhF'
alias la='ls -lha'
Expand Down Expand Up @@ -189,6 +190,15 @@ aur() {
git push
}

justbump() {
[[ -f PKGBUILD ]] || exit 1
source PKGBUILD
new=$(( $pkgrel + 1 ))
sed -i "s/^pkgrel=.*/pkgrel=$new/" PKGBUILD
echo "Old pkgrel is $pkgrel and new is $new"
echo "To commit, run: aur"
}

alias sums='/usr/bin/updpkgsums && chmod 644 PKGBUILD && rm -rf src'
alias ccm='sudo ccm'
alias ccm64='sudo ccm64'
Expand Down

0 comments on commit 952a3fb

Please sign in to comment.