88 lines
2 KiB
Bash
88 lines
2 KiB
Bash
#uutils
|
|
for f in /usr/bin/uu-*; do
|
|
[[ -x "$f" ]] || continue
|
|
cmdname=${f:t}
|
|
alias ${cmdname#uu-}="$f"
|
|
done
|
|
#aliasrc
|
|
alias \
|
|
cp='uu-cp -iv' \
|
|
mv='uu-mv -iv' \
|
|
nf="clear && fastfetch" \
|
|
emoji="cat ~/.local/share/emoji | grep \$1" \
|
|
cst="emacs ~/.config/st/config.h" \
|
|
ll="ls -hl" \
|
|
l="ls -lh" \
|
|
la="ls -ahl" \
|
|
smi="nvidia-smi" \
|
|
srczsh="source ~/.zshrc" \
|
|
battery="sb-battery" \
|
|
bat="sb-battery" \
|
|
quit="exit" \
|
|
:q="exit" \
|
|
push="git push" \
|
|
weather="curl wttr.in/masjedsoleyman" \
|
|
las="ls" \
|
|
la="ls -a" \
|
|
c="clear" \
|
|
cear="clear" \
|
|
cd..="cd .." \
|
|
..='echo "cd .."; cd ../' \
|
|
claer="clear" \
|
|
clare="clear" \
|
|
cleae="clear" \
|
|
clera="clear" \
|
|
hotp="htop" \
|
|
copykey='cat ~/.local/share/vault1.key | xclip -sel clipboard' \
|
|
mic="micro" \
|
|
nx="nsxiv" \
|
|
v="vi" \
|
|
top="btop" \
|
|
htop="btop" \
|
|
stx="startx" \
|
|
e="sudo emerge --ask --verbose $1" \
|
|
es="emerge -s $1"
|
|
|
|
#else
|
|
grep --color=auto < /dev/null &>/dev/null && alias grep='grep --color=auto'
|
|
export PATH="$HOME/.local/bin:$PATH"
|
|
export PATH="/usr/pkg/sbin:/usr/pkg/bin:$PATH"
|
|
export PATH="$PATH:/home/coast/.spicetify"
|
|
export MANPATH="/usr/pkg/man:$MANPATH"
|
|
export XDG_DATA_DIRS="/var/lib/flatpak/exports/share:$HOME/.local/share/flatpak/exports/share:/usr/local/share:/usr/share"
|
|
export EDITOR="emacs"
|
|
export EIX_LIMIT=0
|
|
fpath=(~/.zsh/completions $fpath)
|
|
|
|
lsbind() {
|
|
print -P "\n"
|
|
ls
|
|
zle reset-prompt
|
|
}
|
|
zle -N lsbind
|
|
bindkey '^S' lsbind
|
|
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" "$@"
|
|
}
|