Update dotfiles/.profile, dotfiles/.bashrc

This commit is contained in:
Brian Zalewski 2022-10-31 14:18:47 +00:00
parent 96d09b3375
commit ee02e3a1e0
2 changed files with 3 additions and 5 deletions

View file

@ -32,7 +32,7 @@ HISTFILESIZE=5000
HISTFILE=~/.local/bash_history
# Prompt (on bash only)
if [ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ] || [ "$SHELL" = '/bin/bash' ]; then
if [ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ]; then
if [[ "$(hostname)" != *'-minimal' ]]; then
# Add new line before prompt
PROMPT_COMMAND="PROMPT_COMMAND=echo"
@ -53,7 +53,7 @@ if [ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ] || [ "$SHELL" = '/bin/bash' ]; th
fi
### Bash Completions
if [ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ] || [ "$SHELL" = '/bin/bash' ]; then
if [ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ]; then
### Google Cloud SDK
if command -v brew >/dev/null; then
if [ -f "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.bash.inc" ]; then

View file

@ -37,9 +37,7 @@ if [ -f "$HOME/.local/functions" ]; then
fi
### Bash / ZSH
echo "$0"
echo "$SHELL"
if [ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ] || [ "$SHELL" = '/bin/bash' ] || [ "$0" = 'zsh' ] || [ "$0" = '/bin/zsh' ] || [ "$SHELL" = '/bin/zsh' ]; then
if [ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ] || [ "$0" = 'zsh' ] || [ "$0" = '/bin/zsh' ]; then
### OS Detection
if [ -f /etc/os-release ]; then
. /etc/os-release