badmotorfinger / z

Save time typing out directory paths in PowerShell by jumping around instead.
The Unlicense
430 stars 33 forks source link

Add cleanup option and test for file path on use. #13

Closed punassuming closed 8 years ago

punassuming commented 8 years ago

Cleanup is accessed under -d. Refactored out the score check as a separate function to be used for both cleanup and remove functions. Also added Test-Path in z to check for file paths when determining the list of suitable options. Haven't seen much of an impact on my limited testing.

punassuming commented 8 years ago

I would almost argue to remove the cleanup option and just exclude inaccessible paths from the list of possible selections to maintain a consistent nature to z.sh.

badmotorfinger commented 8 years ago

Can you please re-submit this to the development branch? Will be good to test this over the next few days

punassuming commented 8 years ago

Sorry, I didn't see that when I submitted the PR. Will submit again to the other branch.