From 231d2c86cfbfb2ada1e656bdb1ec73acb0fcf5c3 Mon Sep 17 00:00:00 2001 From: Mark Schmitz Date: Mon, 7 Mar 2022 15:05:02 +0100 Subject: [PATCH] upd macOS/.bash_profile --- macOS/.bash_profile | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/macOS/.bash_profile b/macOS/.bash_profile index ff655c9..74e57dc 100644 --- a/macOS/.bash_profile +++ b/macOS/.bash_profile @@ -1,33 +1,5 @@ #!/usr/bin/env bash -# export PROMPT_COMMAND='echo -n "]1;$PWD"' export PROMPT_COMMAND='echo -ne "\x1b]0;$PWD\x07"' [ -r "$HOME"/.bashrc ] && . "$HOME/.bashrc" - -# 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" +[ -r "$HOME"/.cargo/env ] &&. "$HOME/.cargo/env"