# if running bash if [ -n "$BASH_VERSION" ]; then # include .bashrc if it exists if [ -f "$HOME/.bashrc" ]; then . "$HOME/.bashrc" fi fi # set PATH so it includes user's private bin if it exists if [ -d "$HOME/bin" ]; then PATH="$HOME/bin:$PATH" fi # set PATH so it includes user's private bin if it exists if [ -d "$HOME/.local/bin" ]; then PATH="$HOME/.local/bin:$PATH" fi if [ -d "$HOME/.cargo/env" ]; then . "$HOME/.cargo/env" fi # Nix if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' fi if [ -e '$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh' ]; then . '$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh' fi # set PATH so it prioritizes ./cargo/bin over everything if [ -d "$HOME/.local/bin" ]; then PATH="$HOME/.cargo/bin:$PATH" fi export XDG_DATA_DIRS=$HOME/.nix-profile/share:$HOME/.share:"${XDG_DATA_DIRS:-/usr/local/share/:/usr/share/}" # End Nix eval $(ssh-agent)