dotfiles

Cem's Dotfiles
git clone git://git.ckyln.com/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 84c85f59e3efd1755816f65f7b9cfe273d5e972c
parent b5babc5d6f51b7e82be000ceae03b61f7b4da0db
Author: Cem Keylan <cem@ckyln.com>
Date:   Fri,  1 Nov 2019 15:30:31 +0300

convert ~ to $HOME for dshrc

Diffstat:
M.local/bin/shortcuts | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.local/bin/shortcuts b/.local/bin/shortcuts @@ -13,12 +13,12 @@ sed '/#/d' $HOME/.config/files | while read -r ext shrt loc; do f) echo "$shrt=\"\$EDITOR $loc\" \\" >> "$shellshortcuts" echo "list=\"$shrt \$list\"" >> "$dmenushortcuts" - echo "comms[\"$shrt\"]=\"\$TERMINAL -e \$EDITOR $loc\"" >> "$dmenushortcuts" + echo "comms[\"$shrt\"]=\"\$TERMINAL -e \$EDITOR $(printf "$loc" | sed 's/\~/$HOME/g')\"" >> "$dmenushortcuts" ;; d) echo "$shrt=\"cd $loc && ls -A\" \\" >> "$shellshortcuts" echo "list=\"$shrt \$list\"" >> "$dmenushortcuts" - echo "comms[\"$shrt\"]=\"\$TERMINAL -e \$FILE $loc\"" >> "$dmenushortcuts" + echo "comms[\"$shrt\"]=\"\$TERMINAL -e \$FILE $(printf "$loc" | sed 's/\~/$HOME/g')\"" >> "$dmenushortcuts" echo "map g${shrt} cd ${loc}" >> "$lfshortcuts" ;; esac