diff options
Diffstat (limited to 'bash/bashrc')
| -rw-r--r-- | bash/bashrc | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/bash/bashrc b/bash/bashrc index 0bdac5a..3b74c60 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -56,10 +56,6 @@ if ! shopt -oq posix; then fi # set PATH so it includes user's private bin if it exists -if [ -d "$HOME/bin" ] ; then - PATH="$HOME/bin:$PATH" -fi - if [ -d "$HOME/.local/bin" ] ; then PATH="$HOME/.local/bin:$PATH" fi @@ -77,6 +73,11 @@ PS1='\[\033[32m\]\u@\h \[\033[35m\]$MSYSTEM \[\033[33m\]\w\[\033[36m\]`__git_ps1 # Extra # ====================================================================== +# My binaries +if [ -d "$HOME/mahcode/bin" ]; then + PATH="$HOME/mahcode/bin:$PATH" +fi + # Default editor. Affects a lot of programs. export EDITOR=vim @@ -120,7 +121,7 @@ if [ -f /usr/bin/pandoc ]; then fi # Greeting or salute -if [ -f /usr/games/cowsay ]; then +if [ -f /usr/games/cowsay ] || [ -f /usr/bin/cowsay ]; then # TODO: randomly select one of the following greeting commands #cowsay -f flaming-sheep "oh no" # original #cowsay $(fortune -e 30% debian-hints 20% linux 20% science \ @@ -147,3 +148,11 @@ export NODE_PATH=~/code/nodejs/node-v16.15.1-linux-x64/lib/node_modules # Rust #. "$HOME/.cargo/env" + +# Ruby on Rails +#https://stackoverflow.com/a/19072136/7498073 +gempath="$HOME/.local/share/gem/ruby/3.0.0/bin" +export GEM_HOME="$(ruby -e 'puts Gem.user_dir')" +if [[ -d $gempath ]]; then + export PATH="$PATH:$GEM_HOME/bin" +fi |
