Compare commits
2 Commits
9f992fef60
...
a9654b9d75
Author | SHA1 | Date |
---|---|---|
Ray Elliott | a9654b9d75 | |
Ray Elliott | d114544614 |
14
aliases.sh
14
aliases.sh
|
@ -8,6 +8,7 @@ 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 ll='ls -lh --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F'
|
||||||
alias ls='ls --color=auto -h'
|
alias ls='ls --color=auto -h'
|
||||||
|
|
||||||
|
alias bulk-rename='vimv'
|
||||||
alias cp='cp -i'
|
alias cp='cp -i'
|
||||||
|
|
||||||
alias df='df -h'
|
alias df='df -h'
|
||||||
|
@ -61,9 +62,20 @@ function npm {
|
||||||
# lf gets confused by TERMINFO env var when running in tmux
|
# lf gets confused by TERMINFO env var when running in tmux
|
||||||
# https://github.com/gokcehan/lf/issues/138#issuecomment-464477665
|
# https://github.com/gokcehan/lf/issues/138#issuecomment-464477665
|
||||||
if [ -n "$TERMINFO" ] ; then
|
if [ -n "$TERMINFO" ] ; then
|
||||||
alias lf="TERMINFO= lf"
|
alias lf="TERMINFO= lf -last-dir-path=$HOME/.cache/lf-last-dir"
|
||||||
|
else
|
||||||
|
alias lf="lf -last-dir-path=$HOME/.cache/lf-last-dir"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
cdlf() {
|
||||||
|
cd "$(cat $HOME/.cache/lf-last-dir)"
|
||||||
|
}
|
||||||
|
|
||||||
|
lfcd() {
|
||||||
|
lf -last-dir-path="$HOME"/.cache/lf-last-dir
|
||||||
|
cdlf
|
||||||
|
}
|
||||||
|
|
||||||
# functions
|
# functions
|
||||||
# $1 - output directory
|
# $1 - output directory
|
||||||
# $2 - size
|
# $2 - size
|
||||||
|
|
Loading…
Reference in New Issue