2023-11-14 15:35:10 +00:00
|
|
|
function tmux(){
|
|
|
|
/usr/bin/tmux -f ~/.config/tmux/tmux.conf
|
|
|
|
}
|
|
|
|
|
|
|
|
function lf() {
|
|
|
|
tmp="$(mktemp)"
|
2023-11-14 15:58:59 +00:00
|
|
|
/usr/bin/lf -last-dir-path="$tmp" "$@" --command "set hidden"
|
2023-11-14 15:35:10 +00:00
|
|
|
if [ -f "$tmp" ]; then
|
|
|
|
dir="$(cat "$tmp")"
|
|
|
|
rm -f "$tmp"
|
|
|
|
if [ -d "$dir" ]; then
|
|
|
|
if [ "$dir" != "$(pwd)" ]; then
|
|
|
|
cd "$dir"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
}
|