Do not distinguish between login and non-login bash
I.e., move all bash related configuration to bashrc, and call it from bash_profile. This should make things easier, I hope.
This commit is contained in:
parent
a70ea065b9
commit
5ad5e32b9f
|
@ -1,10 +1,6 @@
|
||||||
# -*- sh -*-
|
# -*- sh -*-
|
||||||
|
|
||||||
export LANG=en_US.UTF-8
|
|
||||||
|
|
||||||
[[ -r /etc/bashrc ]] && . /etc/bashrc
|
[[ -r /etc/bashrc ]] && . /etc/bashrc
|
||||||
[[ -r ~/.bashrc ]] && . ~/.bashrc
|
[[ -r ~/.bashrc ]] && . ~/.bashrc
|
||||||
|
|
||||||
PATH=$HOME/.local/bin/:$PATH
|
|
||||||
export PATH
|
|
||||||
|
|
||||||
|
|
7
bashrc
7
bashrc
|
@ -2,6 +2,13 @@
|
||||||
|
|
||||||
# Based on example .bashrc as provided by Debian
|
# Based on example .bashrc as provided by Debian
|
||||||
|
|
||||||
|
# This file is only meant for interactive shells
|
||||||
|
[[ $- != *i* ]] && return
|
||||||
|
|
||||||
|
# Environment variables go here
|
||||||
|
export LANG=en_US.UTF-8
|
||||||
|
export PATH=${HOME}/.local/share/perl5/bin:${HOME}/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/local/bin:/usr/sbin:/sbin:/usr/local/sbin
|
||||||
|
|
||||||
# If not running interactively, don't do anything
|
# If not running interactively, don't do anything
|
||||||
[ -z "$PS1" ] && return
|
[ -z "$PS1" ] && return
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue