Skip to content

Commit

Permalink
Revert "Add support for .desk file"
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesob committed Feb 14, 2016
1 parent 5d19a10 commit 5d90fc7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ Usage:
List all desks along with a description.
desk (.|go) <desk-name> [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 <desk-name> <cmd>
Run a command within a desk's environment then exit. Think '$SHELL -c'.
desk edit [desk-name]
Expand Down Expand Up @@ -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

Expand Down
6 changes: 0 additions & 6 deletions desk
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ Usage:
List all desks along with a description.
$PROGRAM (.|go) <desk-name> [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 <desk-name> <cmd>
Run a command within a desk's environment then exit. Think '\$SHELL -c'.
$PROGRAM edit [desk-name]
Expand Down Expand Up @@ -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}")"

Expand Down

0 comments on commit 5d90fc7

Please sign in to comment.