Last active
June 27, 2024 18:39
-
-
Save midnight-wonderer/30ef2c3fd28e63997cc27e7c622b2389 to your computer and use it in GitHub Desktop.
user's applications
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# for applications | |
for bcdir in $(find $HOME/.local/applications -mindepth 2 -maxdepth 2 -type d -name bash-completion.d -print) ; do | |
for bcfile in $(find "$bcdir" -mindepth 1 -maxdepth 1 -type f -print) ; do | |
. $bcfile | |
done | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# applications path | |
APPLICATION_PATH=$(find "$HOME/.local/applications" -mindepth 2 -maxdepth 2 -type d -name bin -print | tr '\n' ':' | sed -e 's/^:*//g' -e 's/:*$//g') | |
export PATH="$PATH:$APPLICATION_PATH" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment