mirror of
https://github.com/meineerde/dotfiles.git
synced 2025-10-17 19:41:01 +00:00
Cleanup and fixes for noprompt environments
This commit is contained in:
parent
ce49a825fc
commit
0c218a8257
17
.bashrc
17
.bashrc
@ -36,12 +36,9 @@ export HISTCONTROL=ignoreboth
|
||||
shopt -s histappend >/dev/null 2>&1
|
||||
|
||||
|
||||
# Load RVM
|
||||
[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm
|
||||
|
||||
|
||||
export PG_DATA=/usr/local/var/postgres
|
||||
|
||||
|
||||
# Ruby Settings
|
||||
export RUBY_VERSION=1.8.7
|
||||
export RUBYOPT=-rubygems
|
||||
@ -67,7 +64,7 @@ fi
|
||||
USER_NAME="Holger Just"
|
||||
USER_EMAIL="web@meine-er.de"
|
||||
# Setting up git.
|
||||
if [[ -f ~/.gitconfig ]]; then
|
||||
if [[ -n $NOPROMPT ]] && [[ -f ~/.gitconfig ]]; then
|
||||
if [ "$(git config --global user.name)" != "$USER_NAME" ]; then
|
||||
echo "WARNING: git's user.name is $(git config --global user.name)"
|
||||
fi
|
||||
@ -82,9 +79,9 @@ fi
|
||||
case `uname` in
|
||||
Darwin)
|
||||
export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home"
|
||||
if [ $(which mate) ]; then
|
||||
export EDITOR="mate"
|
||||
export SVN_EDITOR="mate -wl1"
|
||||
if [ $(which mvim) ]; then
|
||||
export EDITOR="mvim"
|
||||
export SVN_EDITOR="mvim -f +1"
|
||||
fi
|
||||
function fullscreen() { printf "\e[3;0;0;t\e[8;0;0t"; return 0; }
|
||||
alias ls='ls -G'
|
||||
@ -109,8 +106,10 @@ case `uname` in
|
||||
|
||||
unset p python python_path
|
||||
|
||||
export PG_DATA=/usr/local/var/postgres
|
||||
|
||||
gitx() { open -a GitX $@; }
|
||||
pdfman() { man -t $1 | open -a /Applications/Preview.app -f; }
|
||||
pdfman() { man -t $1 | open -a /Applications/Skim.app -f; }
|
||||
|
||||
# Bash completion
|
||||
if [ -f `brew --prefix`/etc/bash_completion ]; then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user