Sha256: ec6d39769a51da3f7567eb7f0e25fb1c86bde79362ab7f2a5282f4e134eed3ae
Contents?: true
Size: 700 Bytes
Versions: 3
Compression:
Stored size: 700 Bytes
Contents
#!/usr/bin/env bash # warp-dir shell wrapper wd() { if [ -z "${warp_dir_exec_installed}" ]; then $(which 'warp-dir') 2>&1 > /dev/null export warp_dir_exec_installed=$? fi if [ ${warp_dir_exec_installed} -eq 0 ]; then IFS_BACKUP=$IFS IFS="+" output=$(WARP_DIR_SHELL=yes warp-dir $@ 2>&1) code=$? eval ${output} IFS=$IFS_BACKUP else printf "\nWhoops – I can't find 'warp-dir' executable.\n" printf "Is the gem properly installed?\n" printf "\nTry reinstalling the gem with, for example:\n\n" printf " $ gem install warp-dir --no-wrappers\n" printf " $ hash -r\n" printf " $ warp-dir install [ --dotfile ~/.bashrc ]\n" fi }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
warp-dir-1.1.2 | bin/warp-dir.bash |
warp-dir-1.1.1 | bin/warp-dir.bash |
warp-dir-1.1.0 | bin/warp-dir.bash |