shell: aliases: add ash aliases

This commit is contained in:
lupan committed 2026-10-01 21:28:12 +02:00
1 parent 2c477ef4fe
commit 51731a62a6
1 file changed
+8 -19
+8 -19
View File
@@ -1,11 +1,17 @@
alias v=nvim
alias k=kak
alias kd='kak -s "$(basename $PWD)"'
alias ll='ls -l'
alias kc='kak -c "$(kak -l | kff)"'
alias kf='fd -t f | kff | xargs kd'
alias kh='fd -H -t f | kff | xargs kd'
alias ll='ls -l --color=auto'
alias ls='ls --color=auto'
alias tl='tmux list-sessions'
alias rgh='rg -.'
alias fdh='fd -H'
alias lg=lazygit
alias z='cd $(fd -t d --one-file-system . ~ | kff)'
eval $(dircolors)
if alias st > /dev/null; then
alias gst='_vcs status'
@@ -15,17 +21,6 @@ if alias r > /dev/null; then
unalias r
fi
if which eza > /dev/null; then
alias ls='eza --icons'
alias tree='eza --tree --icons'
elif which exa > /dev/null; then
alias ls='exa --icons'
alias tree='exa --tree --icons'
else
eval $(dircolors)
alias ls='ls --color=auto'
fi
alias nocaps='setxkbmap pl -option ctrl:nocaps'
alias fixdp='xrandr --output DP-0 --right-of DP-2'
alias a4='COLORTERM=truecolor TERM=xterm-256color a4'
@@ -38,12 +33,6 @@ a4i() {
fi
}
kc() {
local Q="${@:-}"
local NAME=$(kak -l | fzy -q "$Q")
[ -n "$NAME" ] && kak -c "$NAME"
}
tn() {
if [ $# -eq 0 ]; then
tmux new