summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc22
1 files changed, 17 insertions, 5 deletions
diff --git a/.bashrc b/.bashrc
index 64ce515..b13facd 100644
--- a/.bashrc
+++ b/.bashrc
@@ -1,12 +1,24 @@
-eval "$(starship init bash)"
-
source ~/.shells/alias.sh
source ~/.shells/exports.sh
-source ~/dotfiles/.shells/bash_completion
+#source ~/dotfiles/.shells/bash_completion
export PATH=/home/$USER/.local/bin:$PATH
+## Get completions
+for sh in /etc/bash/bashrc.d/* ; do
+ [[ -r ${sh} ]] && source "${sh}"
+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\]'
+else
+ PS1+='\u@\h \w \$ '
+fi
-[ -n "$EAT_SHELL_INTEGRATION_DIR" ] && \
- source "$EAT_SHELL_INTEGRATION_DIR/bash"
+## eat integration
+# [ -n "$EAT_SHELL_INTEGRATION_DIR" ] && \
+# source "$EAT_SHELL_INTEGRATION_DIR/bash"
+## doas > sudo
+complete -cf doas