dotfiles/files/bash_profile
Fernando Schauenburg 9b3bc72eaf bash: factor out profile and aliases
This is a preparation to start experimenting with zsh. The idea is to
share the aliases and environment setup between both shells to avoid
having a bunch of duplication. Even if I decide to stick with zsh it
would be nice to keep the bash configs around for systems where I might
not want to install zsh for some reason. We'll see how this goes...
2021-08-07 01:33:26 +02:00

6 lines
255 B
Bash

#!/bin/bash
# Called by bash (1) on for login shells. Execute ~/.profile if present and
# ~/.bashrc if shell is interactive.
[ -f "${HOME}/.profile" ] && source "${HOME}/.profile"
[[ "$-" == *i* ]] && [ -f "${HOME}/.bashrc" ] && source "${HOME}/.bashrc"