bashrc: Adhere to a sane directory structure
This commit is contained in:
23
shrc/bashrc
Executable file
23
shrc/bashrc
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/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 [ -f ~/.profile ]; then
|
||||
source ~/.profile
|
||||
fi
|
||||
|
Reference in New Issue
Block a user