From 66ebc9c033ebd1c0cb0f83e5b962884446198587 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Mon, 10 Jan 2022 06:50:35 +0300 Subject: smol changes zsh shortcuts for rsync; sxiv -> nsxiv imgurl --- dotfiles/.config/zsh/shortcuts | 6 ++++++ dotfiles/.local/bin/imgurl | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'dotfiles') diff --git a/dotfiles/.config/zsh/shortcuts b/dotfiles/.config/zsh/shortcuts index 9224957..e8edb18 100644 --- a/dotfiles/.config/zsh/shortcuts +++ b/dotfiles/.config/zsh/shortcuts @@ -28,6 +28,12 @@ alias calc="python -q -i -c 'import math'" alias spw="setsid $TERMINAL >/dev/null 2>&1 &" alias testinet="ping -c2 example.com" +# rsync shortcuts +alias rs="rsync -avh" +alias rsn="rsync -avhn" +alias rsd="rsync -avh --delete" +alias rsdn="rsync -avhn --delete" + # Fuzzy finder alias fzo='op "$(find . -type d -path "*/\.*" -prune -o -not -name ".*" -type f | fzf)"' if [ -f /usr/share/fzf/completion.zsh ]; then diff --git a/dotfiles/.local/bin/imgurl b/dotfiles/.local/bin/imgurl index 2a2cb37..f9cad49 100755 --- a/dotfiles/.local/bin/imgurl +++ b/dotfiles/.local/bin/imgurl @@ -2,5 +2,5 @@ [ -z "$1" ] && exit -setsid curl -sL "$1" > "/tmp/$(echo "$1" | sed "s/.*\///")" && sxiv -a "/tmp/$(echo "$1" | sed "s/.*\///")" >/dev/null 2>&1 & +setsid curl -sL "$1" > "/tmp/$(echo "$1" | sed "s/.*\///")" && nsxiv -a "/tmp/$(echo "$1" | sed "s/.*\///")" >/dev/null 2>&1 & -- cgit v1.2.3