This commit is contained in:
coast 2025-07-25 14:00:56 +03:30
parent 291b957aae
commit 84d9edd9e4

View file

@ -1,6 +1,13 @@
#uutils
for f in /usr/bin/uu-*; do
[[ -x "$f" ]] || continue
cmdname=${f:t}
alias ${cmdname#uu-}="$f"
done
#aliasrc
alias \ alias \
cp='cp -iv' \ cp='uu-cp -iv' \
mv='mv -iv' \ mv='uu-mv -iv' \
nf="clear && fastfetch" \ nf="clear && fastfetch" \
emoji="cat ~/.local/share/emoji | grep \$1" \ emoji="cat ~/.local/share/emoji | grep \$1" \
cst="emacs ~/.config/st/config.h" \ cst="emacs ~/.config/st/config.h" \
@ -30,12 +37,13 @@ alias \
mic="micro" \ mic="micro" \
nx="nsxiv" \ nx="nsxiv" \
v="vi" \ v="vi" \
neofetch="fastfetch" top="btop" \
queue="mpc add /" htop="btop" \
top="btop" stx="startx" \
htop="btop" e="sudo emerge --ask --verbose $1" \
nwr="newsraft" es="emerge -s $1"
#else
grep --color=auto < /dev/null &>/dev/null && alias grep='grep --color=auto' grep --color=auto < /dev/null &>/dev/null && alias grep='grep --color=auto'
export PATH="$HOME/.local/bin:$PATH" export PATH="$HOME/.local/bin:$PATH"
export PATH="/usr/pkg/sbin:/usr/pkg/bin:$PATH" export PATH="/usr/pkg/sbin:/usr/pkg/bin:$PATH"
@ -54,3 +62,27 @@ lsbind() {
zle -N lsbind zle -N lsbind
bindkey '^S' lsbind bindkey '^S' lsbind
stty -ixon stty -ixon
man() {
local topic=$1
shift
if [[ -n "$topic" && -x "$(command -v uu-$topic)" ]]; then
if man uu-$topic > /dev/null 2>&1; then
command man uu-$topic "$@"
return
fi
fi
command man "$topic" "$@"
}
woman() {
local topic=$1
shift
if [[ -n "$topic" && -x "$(command -v uu-$topic)" ]]; then
if woman uu-$topic > /dev/null 2>&1; then
command woman uu-$topic "$@"
return
fi
fi
command woman "$topic" "$@"
}