Skip to content

Instantly share code, notes, and snippets.

@s0ubhik
Created May 17, 2023 06:36
Show Gist options
  • Save s0ubhik/6685effe6e46f6a840bb480c5d657933 to your computer and use it in GitHub Desktop.
Save s0ubhik/6685effe6e46f6a840bb480c5d657933 to your computer and use it in GitHub Desktop.
Patch for cd ... support in bash
+++ builtins/cd.def 2023-05-17 11:57:46.148180535 +0530
@@ -328,6 +328,8 @@
return (EXECUTION_FAILURE);
}
lflag = 0;
+ } else if (strcmp(list->word->word, "...") == 0){
+ dirname = "../../";
}
#if defined (CD_COMPLAINS)
else if (list->next)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment