๏ฃฟ This is a collection of handy helpers, commands, scripts and terminal tweaks (not exclusive but mainly) for MacOS.
๐พ Just add them to your .bash_profile
located in your user's home directory (~/
), see "Usage" below.
๐ Up to now, this collection contains snippets to:
- add some more colors to your terminal
- change the default behaviour of file listing with
ls
- extend the
history
command's output - generate safe (long and cryptic) passwords using
pwgen
- recursively delete same-named files in a directory and its sub-directories (such as .DS_Store)
- copy your SSH public key to the system clipboard
๐ Open the READMEs for each to see detailed information (like usage and possible requirements).
- clone/download the snippet collection
- move whereever you want it to be (maybe in a hidden sub-folder located in your home directory, e.g.
~/.snippets_for_bash_profile/
) - link to the collection in your
~/._bash_profile
file
๐ That's it.
โ๏ธ It's dangerous to go alone! Take this.
# ensure to be in your user's home directory
cd ~/
# clone the repository (master branch will be used)
git clone git@github.com:dueddel/macos_bash_profile.git .dueddel_macos_bash_profile
# append a link to your .bash_profile using `source`
echo "" >> ~/.bash_profile
echo "# https://github.com/dueddel/macos_bash_profile" >> ~/.bash_profile
echo "source ~/.dueddel_macos_bash_profile/snippets/collection.sh" >> ~/.bash_profile
echo "" >> ~/.bash_profile
๐คฉ This collection is by far not exhaustive since its contents are just my personal preferences.
๐ So, there's a chance that a few or all of the given scripts and terminal tweaks are not exactly what you searched and came here for.
You also might miss many scripts you actually need or you have other cool ideas which I never even thought of.
๐ญ/๐ค In either case just cry or adapt the collection to your needs. Feel free to fork the repository.
๐ This project is licensed under the terms of the MIT license. See also the project's license file.