aboutsummaryrefslogtreecommitdiff
path: root/dotfiles
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2022-01-10 06:50:35 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2022-01-10 06:50:35 +0300
commit66ebc9c033ebd1c0cb0f83e5b962884446198587 (patch)
tree623de12234245b7c163e977aefff89c109827268 /dotfiles
parent208b30e7c76925517c7e2ebae65e21deff82aa83 (diff)
downloadswayrice-66ebc9c033ebd1c0cb0f83e5b962884446198587.tar.gz
swayrice-66ebc9c033ebd1c0cb0f83e5b962884446198587.zip
smol changes
zsh shortcuts for rsync; sxiv -> nsxiv imgurl
Diffstat (limited to 'dotfiles')
-rw-r--r--dotfiles/.config/zsh/shortcuts6
-rwxr-xr-xdotfiles/.local/bin/imgurl2
2 files changed, 7 insertions, 1 deletions
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 &