Updating PKGBUILD; restructuring some aliases & functions

This commit is contained in:
2025-11-03 11:11:18 -06:00
parent f80c799ec9
commit cd920b33d3
5 changed files with 42 additions and 28 deletions

View File

@@ -1,6 +1,33 @@
### AniNIX Customizations ###
IFS="
"
# Text
alias vi=vim
alias view="vim -R"
alias notepad="vim -c 'set nonumber' -c 'startinsert'"
alias sedws='sed -i -e "s/\s\+$//"'
# Metrics & Tools
alias get-commands='for i in $( echo $PATH | sed "s/:/\n/g"); do ls $i; done | sort | less'
alias whoison='who | grep -v tmux'
alias top="top -o %CPU"
alias ethstat='curl rate.sx'
alias ncattest='ncat -vti 3 -w 3 -e "/bin/cat /dev/null"'
alias rdns="dig +short -x "
alias dns="dig +short "
# Development
alias make-entrypoints="grep -E '^[a-zA-Z0-9\-]*:' Makefile"
function calc() {
echo $(( $@ ))
}
# User environment
export WEECHAT_HOME=$HOME/.weechat
if [ -x `which torsocks 2>/dev/null` ] && [ `systemctl status tor 2>/dev/null| grep -c running` -eq 1 ]; then
alias tor-lynx="torsocks elinks https://check.torproject.org/";
fi
function vncdesktop() {
set -x
if [ -z "$@" ]; then
@@ -14,15 +41,7 @@ function vncdesktop() {
vncserver -kill "$DISPLAY"
set +x
}
alias vi=vim
alias view="vim -R"
alias top="top -o %CPU"
alias make-entrypoints="grep -E '^[a-zA-Z0-9\-]*:' Makefile"
alias rdns="dig +short -x "
alias dns="dig +short "
export WEECHAT_HOME=$HOME/.weechat
if [ -x `which torsocks 2>/dev/null` ] && [ `systemctl status tor 2>/dev/null| grep -c running` -eq 1 ]; then
alias tor-lynx="torsocks lynx https://check.torproject.org/";
alias stopvnc="vncserver -kill :1"
if [ -n "$DISPLAY" ]; then
alias cb='xclip -i -sel clip'
fi
IFS="
"