changes
This commit is contained in:
parent
c181feede2
commit
dabbdc466e
3 changed files with 8 additions and 3 deletions
|
|
@ -1,10 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
lfcd () {
|
||||
lf () {
|
||||
# `command` is needed in case `lfcd` is aliased to `lf`
|
||||
cd "$(command lf -print-last-dir "$@")"
|
||||
}
|
||||
|
||||
|
||||
load_aliases() {
|
||||
local TIMEFMT='\%J\n%mE:'
|
||||
local OLDPATH=$PATH
|
||||
|
|
@ -86,6 +87,8 @@ load_aliases() {
|
|||
# Replace cat with bat
|
||||
if checkCommand bat; then
|
||||
alias cat="bat"
|
||||
alias batlog="bat --paging=never -l log"
|
||||
alias battail="tail -f | bat --paging=never -l log"
|
||||
fi
|
||||
|
||||
# Replace tree with broot
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ source "$XDG_CONFIG_HOME/user-dirs.dirs"
|
|||
########################
|
||||
|
||||
export EDITOR=nvim
|
||||
export PAGER=moar
|
||||
export PAGER=less
|
||||
export OPENER=xdg-open
|
||||
|
||||
#######
|
||||
|
|
|
|||
|
|
@ -169,7 +169,9 @@ fi
|
|||
|
||||
# Set up mcfly if installed (lets you search through history easily with ctrl+r)
|
||||
if checkCommand mcfly; then
|
||||
zsh-defer _evalcache mcfly init zsh
|
||||
export MCFLY_KEY_SCHEME=vim
|
||||
export MCFLY_FUZZY=2
|
||||
zsh-defer _evalcache mcfly init zsh
|
||||
fi
|
||||
|
||||
# set up zoxide if installed (lets you jump through folders easily using the z and zi commands instead of cd)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue