Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Centralised all environment setup to .profile
- Loading branch information
Showing
4 changed files
with
29 additions
and
24 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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
# History controls | ||
export HISTFILE=$HOME/.zhistory | ||
export HISTSIZE=1000 | ||
export SAVEHIST=1000 | ||
|
||
# Setup environment | ||
export TZ="Australia/Melbourne" | ||
export HOSTNAME="`hostname`" | ||
export PAGER="less" | ||
export EDITOR="vim" | ||
|
||
# Language setup | ||
export LANG="en_US.UTF-8" | ||
export LC_COLLATE=C | ||
export LC_CTYPE=C | ||
|
||
# Setup paths | ||
export GEM_HOME=$HOME/rubygems | ||
export PATH=$HOME/bin:$HOME/.bin:$PATH:$GEM_HOME/bin | ||
|
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,22 +1,7 @@ | ||
#!/bin/zsh | ||
|
||
# History controls | ||
HISTFILE=$HOME/.zhistory | ||
HISTSIZE=1000 | ||
SAVEHIST=1000 | ||
|
||
# Setup environment | ||
TZ="Australia/Melbourne" | ||
HOSTNAME="`hostname`" | ||
PAGER="less" | ||
EDITOR="vim" | ||
|
||
# Language setup | ||
LANG="en_US.UTF-8" | ||
LC_COLLATE=C | ||
LC_CTYPE=C | ||
|
||
# Setup paths | ||
GEM_HOME=$HOME/rubygems | ||
PATH=$HOME/bin:$HOME/.bin:$PATH:$GEM_HOME/bin | ||
# Source .profile for environment variables | ||
if [ -f ~/.profile ]; then | ||
. ~/.profile | ||
fi | ||
|