summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-04-24 15:57:32 +0300
committerThanos Apollo <[email protected]>2024-04-24 15:57:32 +0300
commit8e46952ad16d1f1384d9fbc728215f273f6bcb1d (patch)
tree85ff31c1c27ed448f066a90e7d23738bef95de1f /.bashrc
parentdf13f9ffe0bdf565ce6793e62be6dd3dc6e4bf72 (diff)
bashrc: Update prompt & add modular
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc19
1 files changed, 15 insertions, 4 deletions
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"