nunOS/config/bash/shadows.sh

18 lines
379 B
Bash
Raw Permalink Normal View History

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"
if [ -f "$tmp" ]; then
dir="$(cat "$tmp")"
rm -f "$tmp"
if [ -d "$dir" ]; then
if [ "$dir" != "$(pwd)" ]; then
cd "$dir"
fi
fi
fi
}