use k as fallback for exa
This commit is contained in:
parent
eeac487d82
commit
14df1e105a
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -10,3 +10,6 @@
|
||||
[submodule "zsh-syntax-highlighting"]
|
||||
path = zsh-syntax-highlighting
|
||||
url = https://github.com/zsh-users/zsh-syntax-highlighting
|
||||
[submodule "k"]
|
||||
path = k
|
||||
url = https://github.com/supercrabtree/k.git
|
||||
|
11
.zshrc
11
.zshrc
@ -7,10 +7,14 @@ alias bell='echo -en "\007\007"'
|
||||
alias dig='dig +short +noshort'
|
||||
alias grep='grep --color=auto'
|
||||
alias hg='history 1 | grep -i '
|
||||
alias ls='exa -s filename --group-directories-first'
|
||||
alias l='exa -lg --git --color-scale -s filename --group-directories-first'
|
||||
alias la='l -a'
|
||||
alias nolog='unset HISTFILE'
|
||||
alias l="k -h --no-vcs --group-directories-first"
|
||||
alias la="k -h -A --no-vcs --group-directories-first"
|
||||
if (( $+commands[exa] )); then
|
||||
alias ls='exa -s filename --group-directories-first'
|
||||
alias l='exa -lg --git --color-scale -s filename --group-directories-first'
|
||||
alias la='l -a'
|
||||
fi
|
||||
|
||||
function cheat { curl cheat.sh/$1 }
|
||||
function rrmdir { find ${1:-.} -depth -type d -exec rmdir '{}' + }
|
||||
@ -70,6 +74,7 @@ autoload -Uz compinit && compinit && zmodload -i zsh/complist
|
||||
autoload -Uz promptinit && promptinit && prompt pure
|
||||
|
||||
source "$ZDOTDIR/grc/grc.zsh"
|
||||
source "$ZDOTDIR/k/k.plugin.zsh"
|
||||
source "$ZDOTDIR/pure/pure.plugin.zsh"
|
||||
source "$ZDOTDIR/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh"
|
||||
source "$ZDOTDIR/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh"
|
||||
|
1
k
Submodule
1
k
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit e2bfbaf3b8ca92d6ffc4280211805ce4b8a8c19e
|
@ -3,6 +3,7 @@
|
||||
git clone --recurse https://git.sdf.org/michael/zsh ~/.config/zsh
|
||||
cp ~/.config/zsh/.zshenv.example ~/.zshenv
|
||||
mkdir -p ~/.config/grc && cd ~/.config/grc && ln -s ../zsh/grc/{grc.conf,colourfiles/*} .
|
||||
ln -s ../.config/zsh/grc/grc{,at} ~/.bin
|
||||
chsh -s $(which zsh)
|
||||
```
|
||||

|
Loading…
x
Reference in New Issue
Block a user