Quote filenames

This commit is contained in:
Thomas Dehaeze 2021-11-03 10:58:41 +01:00
parent 859774b005
commit 116e5b13ec

View File

@ -238,9 +238,9 @@ map ,y shell ~/.config/ranger/scripts/copy-content.sh %s &
:END:
#+begin_src bash
if [ $TMUX ]; then
tmux split -v -l 2 atool -x $1 && tmux select-pane -U
tmux split -v -l 2 atool -x "$1" && tmux select-pane -U
else
atool -x $1
atool -x "$1"
fi
#+end_src
@ -252,9 +252,9 @@ fi
:END:
#+begin_src bash
if [ $TMUX ]; then
tmux split -v -l 2 apack ${1%.*}.zip $1 && tmux select-pane -U
tmux split -v -l 2 apack "${1%.*}.zip" "$1" && tmux select-pane -U
else
apack ${1%.*}.zip $1
apack "${1%.*}.zip" "$1"
fi
#+end_src
@ -266,7 +266,7 @@ fi
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
xclip -sel c < $1 && dunstify "Ranger" "Copied to clipboard"
xclip -sel c < "$1" && dunstify "Ranger" "Copied to clipboard"
#+end_src
*** TODO [#B] Backup to NAS