mirror of
https://github.com/meineerde/dotfiles.git
synced 2025-12-22 18:21:11 +00:00
Remove RUBY_VERSION
This commit is contained in:
parent
b0cefef784
commit
d7df6ff269
8
.bashrc
8
.bashrc
@ -47,11 +47,6 @@ if [[ -s $HOME/.rvm/scripts/rvm ]] ; then
|
|||||||
source $HOME/.rvm/scripts/rvm ;
|
source $HOME/.rvm/scripts/rvm ;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Fix Ruby version
|
|
||||||
if [[ !`which install_ruby 2>/dev/null` ]] && [[ `which ruby 2>/dev/null` ]]; then
|
|
||||||
export RUBY_VERSION=$(ruby --version | sed -e "s/^ruby \(.\..\..\).*$/\1/")
|
|
||||||
fi
|
|
||||||
|
|
||||||
# NVM
|
# NVM
|
||||||
[[ -s $HOME/.nvm/nvm.sh ]] && source $HOME/.nvm/nvm.sh
|
[[ -s $HOME/.nvm/nvm.sh ]] && source $HOME/.nvm/nvm.sh
|
||||||
|
|
||||||
@ -245,9 +240,6 @@ alias sc="script/console"
|
|||||||
|
|
||||||
alias redcar="wrapped_redcar --fork"
|
alias redcar="wrapped_redcar --fork"
|
||||||
|
|
||||||
# shorthands - i do this a lot
|
|
||||||
ruby_version() { if [[ -z $1 ]]; then echo $RUBY_VERSION; else RUBY_VERSION=$1; fi; }
|
|
||||||
|
|
||||||
# if cat is called on a directory, call ls instead
|
# if cat is called on a directory, call ls instead
|
||||||
cat() {
|
cat() {
|
||||||
if [[ $# = 1 ]] && [[ -d $1 ]]; then
|
if [[ $# = 1 ]] && [[ -d $1 ]]; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user