Add .bash_profile
This commit is contained in:
11
.bash_profile
Normal file
11
.bash_profile
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# Check if zsh is installed
|
||||||
|
if command -v zsh > /dev/null 2>&1; then
|
||||||
|
# If zsh exists, replace the current bash shell with zsh
|
||||||
|
# The '-l' flag ensures zsh runs as a login shell
|
||||||
|
exec zsh -l
|
||||||
|
else
|
||||||
|
# If zsh is NOT found, load the standard bashrc configuration
|
||||||
|
if [ -f ~/.bashrc ]; then
|
||||||
|
source ~/.bashrc
|
||||||
|
fi
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user