24 lines
382 B
Bash
Executable File
24 lines
382 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# ~/.bashrc
|
|
#
|
|
|
|
# If not running interactively, don't do anything
|
|
[[ $- != *i* ]] && return
|
|
|
|
# Sometimes you can't change your shell. Sometimes you have to implement hacky
|
|
# workarounds
|
|
if [ -f ~/.bash-to-zsh ]; then
|
|
export SHELL=$(which zsh)
|
|
exec zsh
|
|
fi
|
|
|
|
# Source /etc/profile
|
|
source /etc/profile
|
|
|
|
# Source .profile
|
|
if [ -r ~/.profile ]; then
|
|
source ~/.profile
|
|
fi
|
|
|