Skip to content

Commit

Permalink
Add go handling for watch_file
Browse files Browse the repository at this point in the history
  • Loading branch information
zachborboa committed May 9, 2019
1 parent bc49673 commit 1de60d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bash/.aliases.sh
Expand Up @@ -621,7 +621,9 @@ _, file_extension = os.path.splitext(filename)
filepath = os.path.abspath(filename)
cmd = sys.argv[2]
if not cmd:
if file_extension == '.js':
if file_extension == '.go':
cmd = 'go run {0}'.format(pipes.quote(filename))
elif file_extension == '.js':
cmd = 'node {0}'.format(pipes.quote(filename))
elif file_extension == '.php':
cmd = 'php {0}'.format(pipes.quote(filename))
Expand Down

0 comments on commit 1de60d4

Please sign in to comment.