From 8e46952ad16d1f1384d9fbc728215f273f6bcb1d Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Wed, 24 Apr 2024 15:57:32 +0300 Subject: bashrc: Update prompt & add modular --- .bashrc | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to '.bashrc') diff --git a/.bashrc b/.bashrc index f7d8efd..cd1b64e 100644 --- a/.bashrc +++ b/.bashrc @@ -1,7 +1,7 @@ source ~/.shells/alias.sh source ~/.shells/exports.sh source /etc/profile -export PATH=/home/$USER/.local/bin:$PATH + if [ -e /etc/profile.env ] ; then . /etc/profile.env @@ -14,12 +14,23 @@ done ## Prompt if ${use_color} ; then - PS1='\n\[\e[38;5;226m\]\w \[\e[38;5;63;1m\]$(git branch 2>/dev/null | grep '"'"'*'"'"' | colrm 1 2)\n\[\e[0;38;5;198m\]λ \[\e[0m\]' + PS1='PS1_CMD1=$(git branch 2>/dev/null | grep '"'"'"'"'"'"'"'"'*'"'"'"'"'"'"'"'"' | colrm 1 2)'; PS1='\n\[\e[38;5;153;2;3m\]\h\n\[\e[0;38;5;226m\]\w \[\e[38;5;63;1m\]${PS1_CMD1}\n\[\e[0;38;5;198m\]λ \[\e[0m\]' else PS1+='\u@\h \w \$ ' fi - - ## doas > sudo complete -cf doas +complete -cf sudo +export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/.local/lib/mojo +export PATH=$PATH:~/.modular/pkg/packages.modular.com_mojo/bin/ +export PATH=$PATH:~/.modular/pkg/packages.modular.com_mojo/bin/ + +# Python +eval "$(pyenv init -)" +eval "$(pyenv virtualenv-init -)" +if command -v pyenv 1>/dev/null 2>&1; then + eval "$(pyenv init -)" +fi +export PYENV_ROOT="$HOME/.pyenv" +export PATH="$PYENV_ROOT/bin:$PATH" -- cgit v1.2.3