dotfiles

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

commit 7fb0f030aa2bb487542d4dc18dd39df4a5f9c111
parent c81963960f0396139868074218394e0fed97945e
Author: Cem Keylan <cem@ckyln.com>
Date:   Fri,  1 Nov 2019 15:20:48 +0300

add lf shortcuts

Diffstat:
M.config/lf/lfrc | 1+
M.local/bin/shortcuts | 3+++
2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/.config/lf/lfrc b/.config/lf/lfrc @@ -102,3 +102,4 @@ cmd zip ${{ zip -r $1.zip $1 rm -rf $1 }} +source ~/.config/lfshortcuts diff --git a/.local/bin/shortcuts b/.local/bin/shortcuts @@ -2,9 +2,11 @@ # Unactivated progs should go to /dev/null shellshortcuts="$HOME/.config/shortcutrc" dmenushortcuts="$HOME/.config/dshrc" +lfshortcuts="$HOME/.config/lfshortcuts" printf "# vim:filetype=sh\nalias " > "$shellshortcuts" printf "# vim:filetype=sh\ndeclare -A comms\n" > "$dmenushortcuts" +printf "# vim:filetype=conf\n" > "$lfshortcuts" sed '/#/d' $HOME/.config/files | while read -r ext shrt loc; do case $ext in @@ -17,6 +19,7 @@ sed '/#/d' $HOME/.config/files | while read -r ext shrt loc; do echo "$shrt=\"cd $loc && ls -A\" \\" >> "$shellshortcuts" echo "list=\"$shrt \$list\"" >> "$dmenushortcuts" echo "comms[\"$shrt\"]=\"\$TERMINAL -e \$FILE $loc\"" >> "$dmenushortcuts" + echo "map g${shrt} cd ${loc}" >> "$lfshortcuts" ;; esac done