Skip to content

Instantly share code, notes, and snippets.

@midnight-wonderer
Last active June 27, 2024 18:39
Show Gist options
  • Save midnight-wonderer/30ef2c3fd28e63997cc27e7c622b2389 to your computer and use it in GitHub Desktop.
Save midnight-wonderer/30ef2c3fd28e63997cc27e7c622b2389 to your computer and use it in GitHub Desktop.
user's applications
# 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
# 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