Convert lf from stow to chezmoi
This commit is contained in:
parent
30b064c9ed
commit
cb98b24161
@ -1,8 +1,5 @@
|
|||||||
/go/
|
|
||||||
/hellotech/
|
/hellotech/
|
||||||
/i3/
|
|
||||||
/install-scripts/
|
/install-scripts/
|
||||||
/lf/
|
|
||||||
/node/
|
/node/
|
||||||
/old-scripts/
|
/old-scripts/
|
||||||
/ripgrep/
|
/ripgrep/
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
{{ if lookPath "lf" -}}
|
||||||
set drawbox true
|
set drawbox true
|
||||||
set hidden true
|
set hidden true
|
||||||
set icons true
|
set icons true
|
||||||
@ -23,10 +24,11 @@ map , # find-prev (default ',')
|
|||||||
|
|
||||||
map o open
|
map o open
|
||||||
|
|
||||||
cmd open ${{
|
cmd open ${{ "{{" }}
|
||||||
case $(file --mime-type "$f" --brief --dereference) in
|
case $(file --mime-type "$f" --brief --dereference) in
|
||||||
text/*|application/json) $EDITOR "$f";;
|
text/*|application/json) $EDITOR "$f";;
|
||||||
video/*|image/*|application/pdf) xdg-open "$f";;
|
video/*|image/*|application/pdf) xdg-open "$f";;
|
||||||
*) xdg-open "$f";;
|
*) xdg-open "$f";;
|
||||||
esac
|
esac
|
||||||
}}
|
{{ "}}" }}
|
||||||
|
{{- end }}
|
||||||
0
lf/.local/bin/install-lf-home → dot_local/bin/executable_install-lf
Executable file → Normal file
0
lf/.local/bin/install-lf-home → dot_local/bin/executable_install-lf
Executable file → Normal file
Loading…
Reference in New Issue
Block a user