Update path generation

This commit is contained in:
John Mertz 2023-07-16 14:38:39 -04:00
parent 661865034a
commit b12a3ab989
1 changed files with 17 additions and 14 deletions

View File

@ -1,34 +1,37 @@
# vim: ft=sh # vim: ft=sh
# Local user bin # Local user bin
if [ -d "$HOME/bin" ] ; then if [ -d "$HOME/bin" ]; then
PATH="$HOME/bin:$PATH" PATH="$HOME/bin:$PATH"
fi fi
if [ -d "$HOME/.local/bin" ] ; then if [ -d "$HOME/.local/bin" ]; then
PATH="$HOME/.local/bin::$PATH" PATH="$HOME/.local/bin::$PATH"
#PATH="$HOME/.local/bin:$HOME/.local/bin/firefox:$PATH" #PATH="$HOME/.local/bin:$HOME/.local/bin/firefox:$PATH"
fi fi
#if [ -d "$HOME/.local/share/applications" ] ; then #if [ -d "$HOME/.local/share/applications" ] ; then
#export PATH="$HOME/.local/share/applications/:$PATH" #export PATH="$HOME/.local/share/applications/:$PATH"
#fi #fi
# Nix Packages # Nix Packages
if [ -e "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then if [ -e "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then
source $HOME/.nix-profile/etc/profile.d/nix.sh source $HOME/.nix-profile/etc/profile.d/nix.sh
fi fi
# Private scripts # Private scripts
if [ -d "$HOME/.private-scripts" ] ; then if [ -d "$HOME/.private-scripts" ]; then
PATH="$HOME/.private-scripts:$PATH" PATH="$HOME/.private-scripts:$PATH"
fi fi
# Public scripts # Public scripts
if [ -d "$HOME/scripts" ] ; then if [ -d "$HOME/scripts" ]; then
PATH="$HOME/scripts:$PATH" PATH="$HOME/scripts:$PATH"
fi fi
# Perl
PATH="${HOME}/go/bin:$PATH"
# Perl # Perl
PATH="${HOME}/perl5/bin:$PATH" PATH="${HOME}/perl5/bin:$PATH"
@ -36,16 +39,16 @@ PATH="${HOME}/perl5/bin:$PATH"
export PYENV_ROOT="$HOME/.pyenv" export PYENV_ROOT="$HOME/.pyenv"
PATH="$PYENV_ROOT/bin:$PATH" PATH="$PYENV_ROOT/bin:$PATH"
if command -v pyenv 1>/dev/null 2>&1; then if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)" eval "$(pyenv init -)"
fi fi
# Rust # Rust
PATH="${HOME}/.cargo/bin:$PATH" PATH="${HOME}/.cargo/bin:$PATH"
if [ -f "/run/.containerenv" ]; then if [ -f "/run/.containerenv" ]; then
source "$HOME/.dotfiles/bash/path.distrobox" source "$HOME/.dotfiles/bash/path.distrobox"
else else
source "$HOME/.dotfiles/bash/path.host" source "$HOME/.dotfiles/bash/path.host"
fi fi
# Export PATH # Export PATH