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