Update paths for Nix, Flatpak and others

This commit is contained in:
John Mertz 2023-06-27 20:27:23 -04:00
parent 32c73963b2
commit 8066647b11
3 changed files with 20 additions and 13 deletions

View File

@ -63,9 +63,6 @@ if [ -f ${HOME}/.dotfiles/bash/bash_aliases ]; then
. "${HOME}/.dotfiles/bash/bash_aliases" . "${HOME}/.dotfiles/bash/bash_aliases"
fi fi
# Add snaps and flatpaks to path
#export XDG_DATA_DIRS="$XDG_DATA_DIRS:/usr/local/share:/usr/share:/var/lib/snapd/desktop:/var/lib/flatpak/exports/share"
# Perl configs # Perl configs
PERL5LIB="${HOME}/perl5/lib/perl5:${HOME}/perl5/lib/perl5/x86_64-linux-thread-multi:${PERL5LIB}"; export PERL5LIB; PERL5LIB="${HOME}/perl5/lib/perl5:${HOME}/perl5/lib/perl5/x86_64-linux-thread-multi:${PERL5LIB}"; export PERL5LIB;
PERL_LOCAL_LIB_ROOT="${HOME}/perl5/lib/perl5:${HOME}/perl5/lib/perl5/x86_64-linux-thread-multi:${PERL_LOCAL_LIB_ROOT}"; export PERL_LOCAL_LIB_ROOT; PERL_LOCAL_LIB_ROOT="${HOME}/perl5/lib/perl5:${HOME}/perl5/lib/perl5/x86_64-linux-thread-multi:${PERL_LOCAL_LIB_ROOT}"; export PERL_LOCAL_LIB_ROOT;

View File

@ -4,11 +4,19 @@
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:$HOME/.local/bin/firefox:$PATH" PATH="$HOME/.local/bin::$PATH"
#PATH="$HOME/.local/bin:$HOME/.local/bin/firefox:$PATH"
fi fi
if [ -d "$HOME/.local/share/applications" ] ; then
export PATH="$HOME/.local/share/applications/:$PATH" #if [ -d "$HOME/.local/share/applications" ] ; then
#export PATH="$HOME/.local/share/applications/:$PATH"
#fi
# Nix Packages
if [ -e "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then
source $HOME/.nix-profile/etc/profile.d/nix.sh
fi fi
# Private scripts # Private scripts
@ -21,8 +29,9 @@ if [ -d "$HOME/scripts" ] ; then
PATH="$HOME/scripts:$PATH" PATH="$HOME/scripts:$PATH"
fi fi
# Flutter # Perl
PATH="$HOME/flutter/bin/:$PATH" PATH="${HOME}/perl5/bin:$PATH"
# Python # Python
export PYENV_ROOT="$HOME/.pyenv" export PYENV_ROOT="$HOME/.pyenv"
PATH="$PYENV_ROOT/bin:$PATH" PATH="$PYENV_ROOT/bin:$PATH"
@ -30,8 +39,8 @@ if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)" eval "$(pyenv init -)"
fi fi
# Perl # Rust
PATH="${HOME}/perl5/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"
@ -39,8 +48,5 @@ else
source "$HOME/.dotfiles/bash/path.host" source "$HOME/.dotfiles/bash/path.host"
fi fi
# Rust
PATH="${HOME}/.cargo/bin:$PATH"
# Export PATH # Export PATH
export PATH="$PATH" export PATH="$PATH"

View File

@ -1,5 +1,9 @@
# vim: ft=sh # vim: ft=sh
# Add snaps and flatpaks to path
export XDG_DATA_DIRS="$XDG_DATA_DIRS:/usr/local/share:/usr/share:/var/lib/snapd/desktop:/var/lib/flatpak/exports/share"
# Add distrobox exports
for i in $(find $HOME/scripts/distrobox -maxdepth 1); do for i in $(find $HOME/scripts/distrobox -maxdepth 1); do
if [ -d "$i" ]; then if [ -d "$i" ]; then
PATH="$i:$PATH" PATH="$i:$PATH"