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
|
#!/bin/sh
|
||||||
|
|
||||||
lfcd () {
|
lf () {
|
||||||
# `command` is needed in case `lfcd` is aliased to `lf`
|
# `command` is needed in case `lfcd` is aliased to `lf`
|
||||||
cd "$(command lf -print-last-dir "$@")"
|
cd "$(command lf -print-last-dir "$@")"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
load_aliases() {
|
load_aliases() {
|
||||||
local TIMEFMT='\%J\n%mE:'
|
local TIMEFMT='\%J\n%mE:'
|
||||||
local OLDPATH=$PATH
|
local OLDPATH=$PATH
|
||||||
|
|
@ -86,6 +87,8 @@ load_aliases() {
|
||||||
# Replace cat with bat
|
# Replace cat with bat
|
||||||
if checkCommand bat; then
|
if checkCommand bat; then
|
||||||
alias cat="bat"
|
alias cat="bat"
|
||||||
|
alias batlog="bat --paging=never -l log"
|
||||||
|
alias battail="tail -f | bat --paging=never -l log"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Replace tree with broot
|
# Replace tree with broot
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ source "$XDG_CONFIG_HOME/user-dirs.dirs"
|
||||||
########################
|
########################
|
||||||
|
|
||||||
export EDITOR=nvim
|
export EDITOR=nvim
|
||||||
export PAGER=moar
|
export PAGER=less
|
||||||
export OPENER=xdg-open
|
export OPENER=xdg-open
|
||||||
|
|
||||||
#######
|
#######
|
||||||
|
|
|
||||||
|
|
@ -169,6 +169,8 @@ fi
|
||||||
|
|
||||||
# Set up mcfly if installed (lets you search through history easily with ctrl+r)
|
# Set up mcfly if installed (lets you search through history easily with ctrl+r)
|
||||||
if checkCommand mcfly; then
|
if checkCommand mcfly; then
|
||||||
|
export MCFLY_KEY_SCHEME=vim
|
||||||
|
export MCFLY_FUZZY=2
|
||||||
zsh-defer _evalcache mcfly init zsh
|
zsh-defer _evalcache mcfly init zsh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue