diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2020-04-08 17:21:40 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2020-04-08 17:21:40 -0400 |
| commit | 422d106fbab5505f3810fa845f4f71547c7a4332 (patch) | |
| tree | f6a04c7eabbad04e7c11b3da8e683e69b9df5da2 /.config/lf | |
| parent | 2c06dd36c61dea7383d2a12900eb83ee1751115a (diff) | |
| download | eibhear-422d106fbab5505f3810fa845f4f71547c7a4332.tar.gz eibhear-422d106fbab5505f3810fa845f4f71547c7a4332.tar.zst eibhear-422d106fbab5505f3810fa845f4f71547c7a4332.zip | |
assume default values if xdg dirs not set
Diffstat (limited to '.config/lf')
| -rw-r--r-- | .config/lf/lfrc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/.config/lf/lfrc b/.config/lf/lfrc index 3b4cc14..a201b68 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -2,7 +2,7 @@ # Basic vars set shell sh -set previewer $XDG_CONFIG_HOME/lf/scope +set previewer ${XDG_CONFIG_HOME:$HOME/.config}/lf/scope set shellopts '-eu' set ifs "\n" set scrolloff 10 @@ -36,7 +36,7 @@ cmd delete ${{ cmd moveto ${{ set -f clear; echo "Move to where?" - dest="$(cut -d' ' -f2- $XDG_CONFIG_HOME/directories | fzf)" && + dest="$(cut -d' ' -f2- ${XDG_CONFIG_HOME:$HOME/.config}/directories | fzf)" && eval mv -iv $fx $dest && notify-send "🚚 File(s) moved." "File(s) moved to $dest." }} @@ -44,7 +44,7 @@ cmd moveto ${{ cmd copyto ${{ set -f clear; echo "Copy to where?" - dest="$(cut -d' ' -f2- $XDG_CONFIG_HOME/directories | fzf)" && + dest="$(cut -d' ' -f2- ${XDG_CONFIG_HOME:$HOME/.config}/directories | fzf)" && eval cp -ivr $fx $dest && notify-send "📋 File(s) copied." "File(s) copies to $dest." }} @@ -54,9 +54,9 @@ cmd bulkrename ${{ }} # Bindings -map c $lf -remote "send $id cd $(cut -d' ' -f2 $XDG_CONFIG_HOME/directories | fzf)" +map c $lf -remote "send $id cd $(cut -d' ' -f2 ${XDG_CONFIG_HOME:$HOME/.config}/directories | fzf)" map <c-f> $lf -remote "send $id select '$(fzf)'" -map J $lf -remote "send $id cd $(cut -d' ' -f2 $XDG_CONFIG_HOME/directories | fzf)" +map J $lf -remote "send $id cd $(cut -d' ' -f2 ${XDG_CONFIG_HOME:$HOME/.config}/directories | fzf)" map gh map g top map D delete |
