···11-function rvm --description='Ruby enVironment Manager'
22- # run RVM and capture the resulting environment
33- set --local env_file (mktemp -t rvm.fish.XXXXXXXXXX)
44- # This finds where RVM's root directory is and sources scripts/rvm from within it. Then loads RVM in a clean environment and dumps the environment variables it generates out for us to use.
55- bash -c 'PATH=$GEM_HOME/bin:$PATH;RVMA='~/.rvm/bin/rvm';source $(echo $RVMA | sed "s/\/bin\//\/scripts\//"); rvm "$@"; status=$?; env > "$0"; exit $status' $env_file $argv
66-77- # apply rvm_* and *PATH variables from the captured environment
88- and eval (grep -E '^rvm|^PATH|^GEM_PATH|^GEM_HOME' $env_file | grep -v '_clr=' | sed '/^[^=]*PATH/s/:/" "/g; s/^/set -xg /; s/=/ "/; s/$/" ;/; s/(//; s/)//')
99- # needed under fish >= 2.2.0
1010- and set -xg GEM_PATH (echo $GEM_PATH | sed 's/ /:/g')
1111-1212- # clean up
1313- rm -f $env_file
1414-end
1515-1616-function __handle_rvmrc_stuff --on-variable PWD
1717- # Source a .rvmrc file in a directory after changing to it, if it exists.
1818- # To disable this feature, set rvm_project_rvmrc=0 in $HOME/.rvmrc
1919- if test "$rvm_project_rvmrc" != 0
2020- set -l cwd $PWD
2121- while true
2222- if contains $cwd "" $HOME "/"
2323- if test "$rvm_project_rvmrc_default" = 1
2424- rvm default 1>/dev/null 2>&1
2525- end
2626- break
2727- else
2828- if test -e .rvmrc -o -e .ruby-version -o -e .ruby-gemset -o -e Gemfile
2929- eval "rvm reload" > /dev/null
3030- eval "rvm rvmrc load" >/dev/null
3131- break
3232- else
3333- set cwd (dirname "$cwd")
3434- end
3535- end
3636- end
3737-3838- set -e cwd
3939- end
4040-end
···11#!/bin/sh
22+#
23# input: us-east-1a 172.29.71.236 i-0a7eb3896d61b4d22 Krakencld-app-ASG-A running m5.large None browse_test
33-# ssh's to hosts listed from jws-grep output
4455+# if > 1 argument: run the given command on each remote system and stream the output
56if ! [ -z "$1" ]; then
66- echo "This script cannot be used interactively"
77- exit 1
77+ echo "establishing connections..."
88+ while IFS='$\n' read -r i; do
99+ echo $i
1010+ ip=$(echo "$i" | awk '{print $2}')
1111+ ssh "$ip" "$1"
1212+ done
1313+ exit 0
814fi
9151010-1616+# if no arguments: opens tmux panes to every remote host in list via ssh, sync panes
1117tmux set default-shell "/bin/sh"
1212-# tmux new-window 'sleep 0.1'
1818+tmux new-window 'sleep 0.1'
1319while IFS='$\n' read -r i; do
1420 ip=$(echo "$i" | awk '{print $2}')
1521 tmux split-window "ssh $ip"
1622 tmux select-layout tiled
1723done
1824tmux set -u default-shell
1919-# tmux select-layout tiled
2020-# tmux setw synchronize-panes on
2121-2222-# todo?
2323-# if one result, directly ssh
2424-# if more than one result, do new window tmux madness
2525-2525+tmux select-layout tiled
2626+tmux setw synchronize-panes on
···11-#!/bin/bash
22-33-for fgbg in $(seq 38 48) ; do # Foreground / Background
44- for color in $(seq 238 255) ; do # Colors
55- # Display the color
66- printf "\e[${fgbg};5;%sm %3s \e[0m" $color $color
77- # Display 6 colors per lines
88- if [ $((($color + 1) % 6)) == 4 ] ; then
99- echo # New line
1010- fi
1111- done
1212- echo # New line
1313-done
1414-1515-exit 0
+4-3
bin/short-pwd
···11-#!/bin/sh
11+#!/bin/sh -e
22+#
33+# make a lil pink prompt
2435term=$(printf "$PWD" | sed -E 's|(\.?[^/])([^/]+)\/|\1/|g')
44-55-printf "\033[01;90m$term\e[0m"
66+printf "\033[38;5;162m$term\e[0m"