This file loads other bash_* files and itself contains total environment variables
These are the most common aliases I use for bash.
Here I define things that are too large to be an alias as funtions.
This is my bash prompt definition, with helper functions related to it.
Here I define constans, which is super empty right now but had a purpose before.
I have the alias constants
which lists all defined constants.
In this file I have work related stuff that will never be pushed to GitHub, which is why the file is only seen in .bashrc
Use soft links via ln -s
to install them
sudo -- -sh -c "ln -s /home/$USER/dotfiles/bash/.bash_aliases /home/$USER/;\
ln -s /home/$USER/dotfiles/bash/.bash_functions /home/$USER/;\
ln -s /home/$USER/dotfiles/bash/.bash_prompt /home/$USER/;\
ln -s /home/$USER/dotfiles/bash/.bash_constants /home/$USER/;\
ln -s /home/$USER/dotfiles/bash/.bashrc /home/$USER/;"
often it will help to throw on a -f
in the mix.
I choose to use the /usr/local/bin
folder for my own scripts, so something like the following should do the trick.
If you do not wish to use sudo, then I'd recommend using ~/bin
or similar.
for file in *; do
if [ -f "$file" ]; then
filename=${file%.*}
sudo ln -s "$(pwd)/$file" /usr/local/bin/$filename && \
echo "Success: linked $filename"
fi
done