i.lua - Run a command in a specified directory, then restore cwd #263
chrisant996
started this conversation in
Scripts
Replies: 2 comments 10 replies
-
Thanks for this! Not specifically for this script, but more for the idea... I believe I can modify this to implement a "retry" command ( |
Beta Was this translation helpful? Give feedback.
10 replies
-
The |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This script requires Clink v1.3.13, which adds some new features that make this script possible.
The script adds a new
i
command that can be typed at the command line (but cannot be used in batch scripts).The name "i" is short for "in":
i dir program args
means "in dir, run program args".The script operates by:
For convenience, match completion is relative to the specified dir!
So, for example,
i .. notepad
Tab completes files from..\
, even though..
isn't the current directory yet.i.lua -- last updated 3/31/2022
Beta Was this translation helpful? Give feedback.
All reactions