You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great to have a "special variable" that reflects the Current Working Directory for its context. I am finding myself trying to use the sh: echo "$PWD" approach lots and this has some issues when running more than once. Right now I find myself working around this issue alot having to use a combination of the list | join and osClean functions to construct the correct Abs Path for my given context.
Example
If a "special variable" called .CWD was implement then, the following would be possible:
I wholeheartedly agree with this request. I also believe there should be a special variable for $HOME and $USERNAME.
@andreynering I'm happy to look into this as a first PR if you're interested in adding the functionality. I appreciate any thoughts you have on the matter.
It would be great to have a "special variable" that reflects the Current Working Directory for its context. I am finding myself trying to use the
sh: echo "$PWD"
approach lots and this has some issues when running more than once. Right now I find myself working around this issue alot having to use a combination of thelist | join and osClean
functions to construct the correct Abs Path for my given context.Example
If a "special variable" called
.CWD
was implement then, the following would be possible:Workarounds
There are a few ways I've found of doing this today without a built-in special variable, but they feel unnecessary:
Approach 1: Dynamic Variables (glitched right now)
Note the need to append pairs of
''
to eachsh:
usage.Approach 2: String Processing
Really Repetitive and wouldn't support non-relative paths.
The text was updated successfully, but these errors were encountered: