suicide
This commit is contained in:
parent
291b957aae
commit
84d9edd9e4
1 changed files with 39 additions and 7 deletions
46
.zprofile
46
.zprofile
|
@ -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 \
|
||||
cp='cp -iv' \
|
||||
mv='mv -iv' \
|
||||
cp='uu-cp -iv' \
|
||||
mv='uu-mv -iv' \
|
||||
nf="clear && fastfetch" \
|
||||
emoji="cat ~/.local/share/emoji | grep \$1" \
|
||||
cst="emacs ~/.config/st/config.h" \
|
||||
|
@ -30,12 +37,13 @@ alias \
|
|||
mic="micro" \
|
||||
nx="nsxiv" \
|
||||
v="vi" \
|
||||
neofetch="fastfetch"
|
||||
queue="mpc add /"
|
||||
top="btop"
|
||||
htop="btop"
|
||||
nwr="newsraft"
|
||||
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"
|
||||
|
@ -54,3 +62,27 @@ lsbind() {
|
|||
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" "$@"
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue