-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d7642a2
commit 49d63d9
Showing
3 changed files
with
8 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# shellcheck source=.profile | ||
. ~/.profile | ||
. ~/.bashrc |
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 |
---|---|---|
|
@@ -3,6 +3,8 @@ | |
# | ||
# macos/homebrew style | ||
|
||
[ -t 0 ] || exit 0 | ||
|
||
# clean up | ||
unalias -a | ||
|
||
|
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 |
---|---|---|
@@ -1,23 +1,19 @@ | ||
#!/bin/bash | ||
# ~/.profile: executed by the command interpreter for login shells. | ||
# This file is not read by bash(1), if ~/.bash_profile exists. | ||
|
||
# go is a special snowflake | ||
export GOROOT=/usr/local/opt/go/libexec | ||
export GOPATH=~/go | ||
|
||
# one path to rule them all | ||
function add_to_path() { | ||
[ -d "$1" ] && export PATH="$1":$PATH | ||
} | ||
add_to_path $GOPATH/bin | ||
add_to_path $GOROOT/bin | ||
add_to_path /opt/bin | ||
add_to_path $(brew --prefix coreutils)/libexec/gnubin | ||
add_to_path $(brew --prefix)/bin | ||
add_to_path "$(brew --prefix coreutils)/libexec/gnubin" | ||
add_to_path "$(brew --prefix)/bin" | ||
add_to_path ~/bin | ||
|
||
# one locale to rule them all | ||
unset LC_ALL | ||
unset LANGUAGE | ||
unset LC_CTYPE | ||
export LANG=`locale -a | grep -Ei "en.us.utf"` | ||
LANG="$(locale -a | grep -Ei "en.us.utf")" | ||
export LANG |