From ee02e3a1e0d7b87ba00724ebd4d240595431f32f Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Mon, 31 Oct 2022 14:18:47 +0000 Subject: [PATCH] Update dotfiles/.profile, dotfiles/.bashrc --- dotfiles/.bashrc | 4 ++-- dotfiles/.profile | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/dotfiles/.bashrc b/dotfiles/.bashrc index 6d4e566e..381e6143 100644 --- a/dotfiles/.bashrc +++ b/dotfiles/.bashrc @@ -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 diff --git a/dotfiles/.profile b/dotfiles/.profile index f87bd73b..717751b1 100644 --- a/dotfiles/.profile +++ b/dotfiles/.profile @@ -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