diff options
author | Thanos Apollo <[email protected]> | 2023-10-30 02:14:59 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-10-30 02:14:59 +0200 |
commit | 42454d2b69befe9b167baa22a3428464fc74ac1a (patch) | |
tree | 00b1cf2ae9aa9d420f1c86d77d85051e923a3070 /.bashrc | |
parent | 74db53c789c40e9702044134f789584ea0ea6838 (diff) |
bashrc: Update completions & prompt
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 22 |
1 files changed, 17 insertions, 5 deletions
@@ -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 |