From b7797ef274297fbedda0aa8ccc1754e218955f60 Mon Sep 17 00:00:00 2001 From: David Runge Date: Fri, 28 Nov 2014 14:32:23 +0100 Subject: aliases.zsh: Adding more systemd aliases. --- .zsh.after/aliases.zsh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to '.zsh.after') diff --git a/.zsh.after/aliases.zsh b/.zsh.after/aliases.zsh index 6b36ac5..d9e360f 100644 --- a/.zsh.after/aliases.zsh +++ b/.zsh.after/aliases.zsh @@ -49,12 +49,6 @@ alias treeg='tree -d /cgroup/systemd/' alias sdptree='tree -aC /usr/lib/systemd/' alias sdstree='tree -aC /etc/systemd/' alias sdutree='tree -aC $HOME/.config/systemd/' -#systemctl -alias sdl='sudo systemctl --all' -alias sdlerr='sudo systemctl --all --full |grep error' -alias sdlfail='sudo systemctl --all --full |grep failed' -#timers -alias sdt='sudo systemctl list-timers' #journalctl alias sdj='sudo journalctl' alias sdjf='sudo journalctl -f' #Follow the messages @@ -84,6 +78,9 @@ alias sdsbefore='sudo systemctl show -p "Before"' alias sdsafter='sudo systemctl show -p "After"' alias sdst='sudo systemctl list-timers' alias sdsreload='sudo systemctl daemon-reload' +alias sds='sudo systemctl --all' +alias sdserr='sudo systemctl --all --full |grep error' +alias sdsfail='sudo systemctl --all --full |grep failed' #systemd user services alias sdustart='systemctl --user start' alias sdustop='systemctl --user stop' @@ -105,6 +102,9 @@ alias sdubefore='systemctl --user show -p "Before"' alias sduafter='systemctl --user show -p "After"' alias sdut='systemctl --user list-timers' alias sdureload='systemctl --user daemon-reload' +#alias sdu='systemctl --user' +alias sduerr='systemctl --user --all --full |grep error' +alias sdufail='systemctl --user --all --full |grep failed' #poweroff/reboot/isolate alias sdiso='sudo systemctl isolate ' alias sdreboot='sudo systemctl reboot' -- cgit v1.2.3-54-g00ecf From adda655f06e7ead9e0aca89797c05f98f399a5e0 Mon Sep 17 00:00:00 2001 From: David Runge Date: Fri, 28 Nov 2014 14:33:48 +0100 Subject: export.zsh: Lowering REPORTTIME to 5 (seconds) --- .zsh.after/export.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.zsh.after') diff --git a/.zsh.after/export.zsh b/.zsh.after/export.zsh index e578ef7..ab087ae 100644 --- a/.zsh.after/export.zsh +++ b/.zsh.after/export.zsh @@ -16,7 +16,7 @@ case "$(hostname)" in esac export BROWSER=firefox -export REPORTTIME=30 +export REPORTTIME=5 # if vimpager is installed, use it instead of less if [[ -x /usr/bin/vimpager ]];then -- cgit v1.2.3-54-g00ecf From 6baa2da031773c8a82555d3244f7992551c818c5 Mon Sep 17 00:00:00 2001 From: David Runge Date: Fri, 28 Nov 2014 14:34:34 +0100 Subject: functions.zsh: Making rsync functions more readable by splitting lines. --- .zsh.after/functions.zsh | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) (limited to '.zsh.after') diff --git a/.zsh.after/functions.zsh b/.zsh.after/functions.zsh index 44ce51d..14d133d 100644 --- a/.zsh.after/functions.zsh +++ b/.zsh.after/functions.zsh @@ -305,12 +305,39 @@ lclose() { ## RSYNC backupinfo() { - rsync -r -n -t -p -o -g -v --progress --delete --ignore-existing --size-only -s --exclude 'lost+found' --exclude '.Trash-1000' --exclude '$RECYCLEBIN' --exclude 'System Volume Information' --exclude '.thumbs' $1 $2 - echo "rsync -r -n -t -p -o -g -v --progress --delete --ignore-existing --size-only -s --exclude 'lost+found' --exclude '.Trash-1000' --exclude '\$RECYCLEBIN' --exclude 'System Volume Information' --exclude '.thumbs' /path/to/folder/ /path/to/other/folder" + log_cyan "INFO" + rsync\ + -r\ + -n\ + -t\ + -p\ + -o\ + -g\ + -v\ + --progress\ + --delete\ + --ignore-existing\ + --size-only\ + -s\ + --exclude 'lost+found'\ + --exclude '.Trash-1000'\ + --exclude '$RECYCLEBIN'\ + --exclude 'System Volume Information'\ + --exclude '.thumbs'\ + $1 $2 + echo "backupfolder path/to/folder/ /path/to/other/folder" } backupfolder() { - rsync -r -t -p -o -g -v --progress --delete --ignore-existing --size-only -s --exclude 'lost+found' --exclude '.Trash-1000' --exclude '$RECYCLEBIN' --exclude 'System Volume Information' --exclude '.thumbs' $1 $2 + rsync \ + -r\ + -t\ + -p\ + -o\ + -g\ + -v\ + --progress\ + --delete --ignore-existing --size-only -s --exclude 'lost+found' --exclude '.Trash-1000' --exclude '$RECYCLEBIN' --exclude 'System Volume Information' --exclude '.thumbs' $1 $2 } -- cgit v1.2.3-54-g00ecf From 8f8eff1652d49dcecfade0afad2c199c3ae9ed23 Mon Sep 17 00:00:00 2001 From: David Runge Date: Fri, 28 Nov 2014 14:35:40 +0100 Subject: prompt.zsh: Switching to custom prompt 'dvzrv' --- .zsh.after/prompt.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.zsh.after') diff --git a/.zsh.after/prompt.zsh b/.zsh.after/prompt.zsh index 0cb4ad6..46c9f36 100644 --- a/.zsh.after/prompt.zsh +++ b/.zsh.after/prompt.zsh @@ -1,2 +1,2 @@ -prompt steeef_simplified +prompt dvzrv -- cgit v1.2.3-54-g00ecf