Skip to content

Instantly share code, notes, and snippets.

@vasi
Created March 13, 2025 05:27
Show Gist options
  • Save vasi/f32952e080e16e51468a8aea709c9b2d to your computer and use it in GitHub Desktop.
Save vasi/f32952e080e16e51468a8aea709c9b2d to your computer and use it in GitHub Desktop.
uBlue bashrc
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific environment
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]; then
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi
export PATH
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# User specific aliases and functions
if [ -d ~/.bashrc.d ]; then
for rc in ~/.bashrc.d/*; do
if [ -f "$rc" ]; then
. "$rc"
fi
done
fi
unset rc
# Put my stuff first
export PATH="$HOME/bin:$PATH"
if [ -z "$STAGE_CHECKED" ]; then
export STAGE_CHECKED=1
if command -v rpm-ostree; then
if rpm-ostree status --json | jq -e '.deployments[].staged | select(.)' > /dev/null ; then
echo 'New upgrade staged! Reboot to install'
fi
fi
fi
eval "$(/var/home/vasi/.local/bin/mise activate bash)"
# Setup brew command-not-found
test -f /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-command-not-found/handler.sh && \
source /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-command-not-found/handler.sh
if command -v direnv >/dev/null; then
eval "$(direnv hook bash)"
fi
ATUIN_INIT_FLAGS="--disable-up-arrow"
### bling.sh source start
test -f /usr/share/ublue-os/bling/bling.sh && source /usr/share/ublue-os/bling/bling.sh
### bling.sh source end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment