dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit f30da94699152a9ce9c56a42b666a0e9024b2567
parent 45e87a5e9ec14c2c443785675f85c9c600a8b962
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Fri,  8 Mar 2019 10:08:28 +0100

Update submodules, fix shellcheck errors, add gcagp-sl-all

Diffstat:
Mlinks/.commands.sh | 22+++++++++++++---------
1 file changed, 13 insertions(+), 9 deletions(-)

diff --git a/links/.commands.sh b/links/.commands.sh @@ -44,11 +44,6 @@ o() { fi } -if [ "$(uname)" != 'Darwin' ]; then - open() { xdg-open "$@" &> /dev/null &disown; } -fi - - ## editor alias vi='vim -u ~/.vim/vimrc.noplugs' @@ -161,21 +156,21 @@ transfer() { # use transfer.sh to share files over the net } t-add() { - transmission-remote --add --download-dir $PWD --encryption-required $@ + transmission-remote --add --download-dir "$PWD" --encryption-required "$@" } t-list() { transmission-remote --list } t-stop() { - transmission-remote --torrent $@ --stop + transmission-remote --torrent "$@" --stop } t-stop-idle() { for id in $(t-list | grep Done | grep Idle | awk '{ print $1 }' | tr '\n' ','); do - t-stop $id + t-stop "$id" done } t-remove() { - transmission-remote --torrent $@ --remove + transmission-remote --torrent "$@" --remove } t-remove-all() { transmission-remote -tall --remove @@ -187,4 +182,13 @@ m-all-sl() { done } +gcagp-all-sl() { + msg="Update color scheme" + read -r "input?commit message [$msg]: " + msg="${input:-$msg}" + for d in ~/code/dotfiles/lib/{dwm,slstatus,st,surf,tabbed}; do + cd "$d" && git commit --all -m "$msg" --verbose --gpg-sign && git push + done +} + [ -f ~/.shortcuts ] && source ~/.shortcuts