3 ms·
I've tried z and autojump before and have found them unnecessary. I instead use aliases. This allows my shell history to stay clean and legible. It's also mu
by precompute 3y ago
I've tried z and autojump before and have found them unnecessary.
I instead use aliases. This allows my shell history to stay clean and legible. It's also much more customizable.
alias c='cd'
alias b='c ..'
alias bb='c ../..'
...
alias bbbbbbb='c ../../../../../../..'
alias B='bb'
alias Bb='bbb'
...
alias BBBb='bbbbbbb'
...
alias L='eza -la --time-style long-iso --color-scale --color-scale-mode=gradient --hyperlink --no-quotes -FX'
alias Lg='L | rg'
alias Lt='L -T'
alias Ltg='L -T | rg'
alias Ld='L -D'
alias Ldg='L -D | rg'
alias Ltd='Lt -D'
alias Lldg='Ll -D | rg'
alias Ls='L --sort newest'
alias LS='L --sort oldest'
...
alias Lorg='L | sort --key 2 -h --reverse | rg'
alias Lotg='Lt | sort --key 2 -h | rg'
alias Lotrg='Lt | sort --key 2 -h --reverse | rg'
etc.
My bash history is unrestricted. I use FZF to quickly select older commands. This takes the "magic" out of the selection process and lets me know exactly what directory I'll go to.
- lencastre 3y agoHi, rg doesn't play nice with eza --hyperlink do you have an alternative, it repeats inline the result found and loses the hyperlink ability, any ideas?