added lf config

This commit is contained in:
2026-05-08 15:52:52 +02:00
parent c8a2be1507
commit 134b782d4f
3 changed files with 45 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
# Change working dir in shell to last dir in lf on exit (adapted from ranger).
#
# You need to either copy the content of this file to your shell rc file
# (e.g. ~/.bashrc) or source this file directly:
#
# LFCD="/path/to/lfcd.sh"
# if [ -f "$LFCD" ]; then
# source "$LFCD"
# fi
#
# You may also like to assign a key (Ctrl-O) to this command:
#
# bind '"\C-o":"lfcd\C-m"' # bash
# bindkey -s '^o' 'lfcd\n' # zsh
#
lfcd () {
# `command` is needed in case `lfcd` is aliased to `lf`
cd "$(command lf -print-last-dir "$@")"
}
+23
View File
@@ -0,0 +1,23 @@
# Shell für Kommandos
set shell sh
set shellopts '-eu'
set ifs "\n"
# Anzeige
set hidden true
set drawbox true
set icons true
set ignorecase true
set scrolloff 5
set info size
# Mausklick aktivieren
set mouse true
# Praktische Extras
map . set hidden!
map D delete
map <c-r> reload