2023-09-05 16:47:23 +00:00
|
|
|
#!/bin/bash
|
2023-02-24 01:24:59 +00:00
|
|
|
# vim: ft=sh
|
|
|
|
|
2022-04-16 19:54:07 +00:00
|
|
|
# Local user bin
|
2023-07-16 18:38:39 +00:00
|
|
|
if [ -d "$HOME/bin" ]; then
|
|
|
|
PATH="$HOME/bin:$PATH"
|
2022-04-16 19:54:07 +00:00
|
|
|
fi
|
2023-06-28 00:27:23 +00:00
|
|
|
|
2023-07-16 18:38:39 +00:00
|
|
|
if [ -d "$HOME/.local/bin" ]; then
|
2023-10-05 18:34:00 +00:00
|
|
|
PATH="$HOME/.local/bin:$PATH"
|
2022-04-16 19:54:07 +00:00
|
|
|
fi
|
2023-06-28 00:27:23 +00:00
|
|
|
|
2023-10-05 18:34:00 +00:00
|
|
|
if [ -d "$HOME/.local/share/bin" ]; then
|
|
|
|
PATH="$HOME/.local/share/bin:$PATH"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -d "$HOME/.local/share/applications" ] ; then
|
|
|
|
PATH="$HOME/.local/share/applications/:$PATH"
|
|
|
|
fi
|
2023-06-28 00:27:23 +00:00
|
|
|
|
|
|
|
# Nix Packages
|
|
|
|
if [ -e "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then
|
2023-07-16 18:38:39 +00:00
|
|
|
source $HOME/.nix-profile/etc/profile.d/nix.sh
|
2022-04-16 19:54:07 +00:00
|
|
|
fi
|
|
|
|
|
2024-02-01 04:53:28 +00:00
|
|
|
# Perl plenv
|
|
|
|
if [ -d "$HOME/.plenv/bin" ]; then
|
|
|
|
export PATH="$HOME/.plenv/bin:$PATH"
|
|
|
|
fi
|
|
|
|
|
2022-04-16 19:54:07 +00:00
|
|
|
# Private scripts
|
2023-07-16 18:38:39 +00:00
|
|
|
if [ -d "$HOME/.private-scripts" ]; then
|
|
|
|
PATH="$HOME/.private-scripts:$PATH"
|
2022-04-16 19:54:07 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Public scripts
|
2023-07-16 18:38:39 +00:00
|
|
|
if [ -d "$HOME/scripts" ]; then
|
|
|
|
PATH="$HOME/scripts:$PATH"
|
2022-04-16 19:54:07 +00:00
|
|
|
fi
|
|
|
|
|
2023-10-05 18:34:00 +00:00
|
|
|
# Go
|
2023-07-16 18:38:39 +00:00
|
|
|
PATH="${HOME}/go/bin:$PATH"
|
|
|
|
|
2023-06-28 00:27:23 +00:00
|
|
|
# Perl
|
|
|
|
PATH="${HOME}/perl5/bin:$PATH"
|
|
|
|
|
2022-04-16 19:54:07 +00:00
|
|
|
# Python
|
|
|
|
export PYENV_ROOT="$HOME/.pyenv"
|
2022-12-16 02:51:15 +00:00
|
|
|
PATH="$PYENV_ROOT/bin:$PATH"
|
2022-04-16 19:54:07 +00:00
|
|
|
if command -v pyenv 1>/dev/null 2>&1; then
|
2023-07-16 18:38:39 +00:00
|
|
|
eval "$(pyenv init -)"
|
2022-04-16 19:54:07 +00:00
|
|
|
fi
|
2022-12-16 02:51:15 +00:00
|
|
|
|
2023-06-28 00:27:23 +00:00
|
|
|
# Rust
|
|
|
|
PATH="${HOME}/.cargo/bin:$PATH"
|
2022-04-16 19:54:07 +00:00
|
|
|
|
2022-12-13 03:44:24 +00:00
|
|
|
if [ -f "/run/.containerenv" ]; then
|
2023-07-16 18:38:39 +00:00
|
|
|
source "$HOME/.dotfiles/bash/path.distrobox"
|
2022-12-12 19:29:13 +00:00
|
|
|
else
|
2023-07-16 18:38:39 +00:00
|
|
|
source "$HOME/.dotfiles/bash/path.host"
|
2022-12-12 19:29:13 +00:00
|
|
|
fi
|
|
|
|
|
2022-04-16 19:54:07 +00:00
|
|
|
# Export PATH
|
|
|
|
export PATH="$PATH"
|