Fix some Ruby stuff

This commit is contained in:
Loic Nageleisen 2020-12-21 18:26:00 +01:00
parent f73e13ffeb
commit 70b4d2d257
6 changed files with 30 additions and 5 deletions

View file

@ -7,7 +7,7 @@ function kd() {
if [[ $# -eq 0 ]]; then
local candidate="$PWD"
while [[ -n "$candidate" ]]; do
for file in Gemfile Procfile .git; do
for file in Gemfile .git; do
if [[ -e "$candidate/$file" ]]; then
if [[ -t 1 ]]; then
cd "$candidate" || return 1