Skip to content

thereisnotime/xxAliasToolbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 

Repository files navigation

xxAliasToolbox

Description

A collection of helpful shell aliases and functons. It can autoinstall on bash, zsh and every other shell which will be listed in "find ~/.*rc".

Installation

  • WARNING: The current public version of the script installs the aliases and the functions in all *.rc files in your current ~ folder. It should not create any problems, but if it does - please open an issue here.

Easy oneliner for installation with wget:

wget https://raw.githubusercontent.com/thereisnotime/xxAliasToolbox/master/xxAliasToolbox.sh -O /tmp/xxAliasToolbox.sh && chmod +x /tmp/xxAliasToolbox.sh && /tmp/xxAliasToolbox.sh && rm /tmp/xxAliasToolbox.sh

Easy oneliner for installation with curl:

bash <(curl -s https://raw.githubusercontent.com/thereisnotime/xxAliasToolbox/master/xxAliasToolbox.sh)

Dependencies

Currently the script depends only on the package manager and few internals, which get installed with the script:

curl
psmisc
wget
locate
whois
htop
net-tools
screen
jq
xmlstarlet
yamllint
pv
dtrx

Compatability

The should work on most Linus distributions and has been tested on the following:

Debian 7 x64
Debian 7 x86
Debian 8 x64
Debian 8 x86
Debian 9 x64

Uninstall

To remove xxAliasToolbox from all shells use:

for RCFILE in `find ~/.*rc`; do
if grep -q "#XXALIASTOOLBOX" "$RCFILE"; then
	sed -i '/#XXALIASTOOLBOX/,/#ENDXXALIASTOOLBOX/g' "$RCFILE"
fi
done

After that you can clear your environment variables and source ~/.*rc files or just exit and login again.