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:
Marty Oehme 2019-02-04 10:59:48 +01:00
parent e5639fafb1
commit e1a780997a
3 changed files with 4 additions and 3 deletions

View file

@ -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"

View file

@ -1,2 +1,2 @@
alias k="k -h"
alias l="k -h"
alias l="k -A"

View file

@ -0,0 +1 @@
alias ..="ENHANCD_DISABLE_DOT=1 cd .."