diff --git a/aliases.sh b/aliases.sh index 623892a..0f8e40a 100644 --- a/aliases.sh +++ b/aliases.sh @@ -8,7 +8,6 @@ alias la='ls -lha --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --col alias ll='ls -lh --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F' alias ls='ls --color=auto -h' -alias bulk-rename='vimv' alias cp='cp -i' alias df='df -h' @@ -62,20 +61,9 @@ function npm { # lf gets confused by TERMINFO env var when running in tmux # https://github.com/gokcehan/lf/issues/138#issuecomment-464477665 if [ -n "$TERMINFO" ] ; then - alias lf="TERMINFO= lf -last-dir-path=$HOME/.cache/lf-last-dir" -else - alias lf="lf -last-dir-path=$HOME/.cache/lf-last-dir" + alias lf="TERMINFO= lf" fi -cdlf() { - cd "$(cat $HOME/.cache/lf-last-dir)" -} - -lfcd() { - lf -last-dir-path="$HOME"/.cache/lf-last-dir - cdlf -} - # functions # $1 - output directory # $2 - size