Navigation Menu

Skip to content

Commit

Permalink
Centralised all environment setup to .profile
Browse files Browse the repository at this point in the history
  • Loading branch information
mscharley committed Aug 8, 2012
1 parent 1382c38 commit 1fe5ec2
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 24 deletions.
5 changes: 0 additions & 5 deletions bash/env

This file was deleted.

4 changes: 4 additions & 0 deletions bash_profile
@@ -1,5 +1,9 @@
# .bash_profile

if [ -f ~/.profile ]; then
. ~/.profile
fi

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
Expand Down
21 changes: 21 additions & 0 deletions profile
@@ -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

23 changes: 4 additions & 19 deletions zsh/1.env.zsh
@@ -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

0 comments on commit 1fe5ec2

Please sign in to comment.