From 5d90fc7831f757650cde62310744c8e0b41d84e5 Mon Sep 17 00:00:00 2001 From: James O'Beirne Date: Sat, 13 Feb 2016 18:41:57 -0800 Subject: [PATCH] Revert "Add support for .desk file" --- README.md | 3 +-- desk | 6 ------ 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/README.md b/README.md index b708031..beed597 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,6 @@ Usage: List all desks along with a description. desk (.|go) [shell-args...] Activate a desk. Extra arguments are passed onto shell. - Without a name specified, it tries activating the desk specified in the ./Deskfile file. desk run Run a command within a desk's environment then exit. Think '$SHELL -c'. desk edit [desk-name] @@ -98,7 +97,7 @@ desk for doing work on a terraform repo Basically, desk just associates a shell script (`name.sh`) with a name. When you call `desk . name`, desk drops you into a shell where `name.sh` has been executed, and then desk extracts out certain comments in `name.sh` for useful -rendering. If you call `desk .` without any desk specified, desk will look for a `Deskfile` file in the current directory and uses its content as the name. +rendering. ### Installing diff --git a/desk b/desk index 401c449..ada70f2 100755 --- a/desk +++ b/desk @@ -27,7 +27,6 @@ Usage: List all desks along with a description. $PROGRAM (.|go) [shell-args...] Activate a desk. Extra arguments are passed onto shell. - Without a name specified, it tries activating the desk specified in the ./.desk file. $PROGRAM run Run a command within a desk's environment then exit. Think '\$SHELL -c'. $PROGRAM edit [desk-name] @@ -92,11 +91,6 @@ cmd_init() { cmd_go() { local TODESK="$1" - if [ -z "$TODESK" -a -f "${PWD}/Deskfile" ]; then - # if no desk is specified try the Deskfile file in the current directory - read TODESK < "${PWD}/Deskfile" - fi - local DESKEXT=$(get_deskfile_extension) local DESKPATH="$(find "${DESKS}/" -name "${TODESK}${DESKEXT}")"