upd macOS/.bash_profile

This commit is contained in:
2022-03-07 15:05:02 +01:00
parent f4ff0b83ec
commit 231d2c86cf

View File

@@ -1,33 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# export PROMPT_COMMAND='echo -n "]1;$PWD"'
export PROMPT_COMMAND='echo -ne "\x1b]0;$PWD\x07"' export PROMPT_COMMAND='echo -ne "\x1b]0;$PWD\x07"'
[ -r "$HOME"/.bashrc ] && . "$HOME/.bashrc" [ -r "$HOME"/.bashrc ] && . "$HOME/.bashrc"
[ -r "$HOME"/.cargo/env ] &&. "$HOME/.cargo/env"
# export PS1="\u@\h \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ "
# export PS1="\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ "
# PS1='$ '
# source ~/.git-prompt.sh
# Ubuntu 18 PS1='\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u\[\033[01;33m\]@\[\033[01;36m\]\h \[\033[01;33m\]\w \[\033[01;35m\]\$ \[\033[00m\]'
# PS1='\[\033[38;5;29m\]$(__git_ps1 "(%s)")\[\033[00m\]\[\e]0;\u@\h: \w\a\]\[\033[38;5;88m\]\u\[\033[38;5;138m\]@\[\033[38;5;28m\]\h:\[\033[38;5;26m\]\W \[\033[01;35m\]\$ \[\033[00m\]'
# Debian 10
# PS1='${debian_chroot:+($debian_chroot)}\[\e[1;31m\]\u\[\e[1;33m\]@\[\e[1;36m\]\h \[\e[1;33m\]\w \[\e[1;35m\]\$ \[\e[0m\]'
# export TMPDIR=/var/tmp/
# if [ -f /usr/local/share/bash-completion/bash_completion ]; then
# . /usr/local/share/bash-completion/bash_completion
# fi
# this is the supposed way to go for @2 - dunno why my version above works for me
# export BASH_COMPLETION_COMPAT_DIR="/usr/local/etc/bash_completion.d"
# [[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh"
# Save and reload the history after each command finishes
# export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
# # source /Users/mark/.config/broot/launcher/bash/br
. "$HOME/.cargo/env"