Sha256: 43f68d6cf78af23ace28d098415763a749178519a9c79ec6407cc56dacb804e9
Contents?: true
Size: 882 Bytes
Versions: 1
Compression:
Stored size: 882 Bytes
Contents
#!/usr/bin/env bash # warp-dir shell wrapper wd() { if [ -z "${warp_dir_exec_installed}" -o "${warp_dir_exec_installed}" == "1" ]; 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=$? if [ $code -eq 127 ]; then unset warp_dir_exec_installed wd_not_found else eval ${output} IFS=$IFS_BACKUP fi else wd_not_found fi } wd_not_found() { 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" }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
warp-dir-1.1.3 | bin/warp-dir.bash |