-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shell: minor tidy up of
bash_profile
- Loading branch information
Showing
1 changed file
with
10 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,17 @@ | |
|
||
# bash_profile | ||
|
||
# set 256 color profile where possible | ||
if [[ $COLORTERM == gnome-* && $TERM == xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
necolas
Author
Owner
|
||
export TERM=gnome-256color | ||
elif infocmp xterm-256color >/dev/null 2>&1; then | ||
export TERM=xterm-256color | ||
fi | ||
|
||
# Up-front dotfiles configuration | ||
# Not part of `load_dotfiles` because it `brew` must be available before | ||
# `$(brew --prefix)` is used anywhere. | ||
# Not part of `load_dotfiles` because it must be sourced before anything else | ||
# to be sure that commands like `brew` (when installed in a custom location) | ||
# are already added to the PATH. | ||
[ -r $HOME/.dotfilesrc ] && source $HOME/.dotfilesrc; | ||
|
||
load_dotfiles() { | ||
|
@@ -29,12 +37,5 @@ load_dotfiles() { | |
done | ||
} | ||
|
||
# set 256 color profile where possible | ||
if [[ $COLORTERM == gnome-* && $TERM == xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then | ||
export TERM=gnome-256color | ||
elif infocmp xterm-256color >/dev/null 2>&1; then | ||
export TERM=xterm-256color | ||
fi | ||
|
||
load_dotfiles | ||
unset load_dotfiles |
Have you read http://blog.sanctum.geek.nz/term-strings/ and what are you're thoughts about
$TERM
strings being forced in bash. Clearly you support it, but wondering if you've ever run into issues where forcing the$TERM
string has had adverse effects.