Enable new l using k, create enhancd config
Using l will use k for ls instead, displaying hidden dirs and colod-coding. See https://github.com/rimraf/k for info. '..' will switch to parent directory. 'cd ..' will invoke the normal enhancd .. switcher. Enhancd is configured with fzy, fzf if it is not found.
This commit is contained in:
parent
e5639fafb1
commit
e1a780997a
3 changed files with 4 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
if [[ "$(uname -s)" == "Linux" ]]; then
|
||||
# we're on linux
|
||||
alias l-d="ls -lFad"
|
||||
alias l="ls -lAhF"
|
||||
# alias l="ls -lAhF" # Overwritten by using k in .zsh.d/004-k-alias
|
||||
alias ll="ls -lFa | TERM=vt100 less"
|
||||
alias ls='ls --color=auto'
|
||||
fi
|
||||
|
@ -21,7 +21,7 @@ alias myip="curl -s icanhazip.com"
|
|||
alias reattach="screen -r"
|
||||
alias zh="fc -l -d -D"
|
||||
|
||||
alias ..="cd .."
|
||||
# alias ..="cd .." # overwritten by enhancd config in .zshrc.d/
|
||||
alias ...="cd ../.."
|
||||
alias ~="cd $HOME"
|
||||
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
alias k="k -h"
|
||||
alias l="k -h"
|
||||
alias l="k -A"
|
1
.zshrc.d/005-enhancd-config
Normal file
1
.zshrc.d/005-enhancd-config
Normal file
|
@ -0,0 +1 @@
|
|||
alias ..="ENHANCD_DISABLE_DOT=1 cd .."
|
Loading…
Reference in a new issue