aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/%HOME%/.bash_utils/ruby.sh
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2018-06-04 23:10:09 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2018-06-04 23:10:09 +0300
commit6eb00d65d5732bbb025d573422adab5e3ca74dcc (patch)
treed118dbe74fa749a9293636098f89093449563871 /%HOME%/.bash_utils/ruby.sh
parentremove .profile (diff)
downloadlinux-home-6eb00d65d5732bbb025d573422adab5e3ca74dcc.tar.gz
linux-home-6eb00d65d5732bbb025d573422adab5e3ca74dcc.zip
attempt to organize stuff properly
bash-independent stuff should go to .profile, which is what I'm trying to do. I'm not sure about how correct all of this is, a few bashisms were ought to creep in.
Diffstat (limited to '')
-rw-r--r--%HOME%/.bash_utils/ruby.sh20
1 files changed, 0 insertions, 20 deletions
diff --git a/%HOME%/.bash_utils/ruby.sh b/%HOME%/.bash_utils/ruby.sh
deleted file mode 100644
index 8d0b74a..0000000
--- a/%HOME%/.bash_utils/ruby.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/usr/bin/env bash
-
-# Copyright (c) 2016 Egor Tensin <Egor.Tensin@gmail.com>
-# This file is part of the "Linux/Cygwin environment" project.
-# For details, see https://github.com/egor-tensin/linux-home.
-# Distributed under the MIT License.
-
-ruby_setup() {
- local user_dir
- local bin_dir
-
- command -v ruby &> /dev/null \
- && command -v gem &> /dev/null \
- && user_dir="$( ruby -e 'puts Gem.user_dir' )" \
- && export GEM_HOME="$user_dir" \
- && bin_dir="$( ruby -e 'puts Gem.bindir' )" \
- && path_export "$bin_dir"
-}
-
-ruby_setup