.config
.local
bin
bootstrap
layout
mpc
test
.bashrc-global
.directory
bashrc.sh
bashrc.sh.bak
mklatex
mpv-xwinwrap
powerline-shell.py
tde.bin
wal-set
xephrice
xrdbupdate
.ncmpcpp
.oh-my-zsh
.themes
.vim
System
.Xresources
.bash_profile
.bashrc
.bin
.gitmodules
.profile
.vimrc
.xinitrc
.xsessionrc
.zshrc
28 lines
473 B
Bash
28 lines
473 B
Bash
#!/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
|
|
|
|
# Source the bash-specific rc
|
|
if [ -f ~/.bin/bashrc.sh ]; then
|
|
source ~/.bin/bashrc.sh
|
|
fi
|