Timeline for How to define alias only for some directory? [duplicate]
Current License: CC BY-SA 3.0
14 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 22, 2018 at 18:53 | history | closed |
muru jimmij Romeo Ninov Wouter Verhelst Chris Davies |
Duplicate of How to set an alias on a per-directory basis? | |
| Oct 22, 2018 at 12:04 | answer | added | schily | timeline score: -2 | |
| Oct 22, 2018 at 9:35 | review | Close votes | |||
| Oct 22, 2018 at 18:53 | |||||
| Jul 29, 2018 at 23:39 | comment | added | jojman | If you want to manage different shell environments for different projects/workspaces/whatever (which involves the two things you seem to be after: storing a project directory and custom aliases when working within it), you chould try using tmuxinator. | |
| Sep 23, 2016 at 19:56 | comment | added | Jeff Schaller♦ | I suspect that an alias or function, like bashBedlam's is as close as you can get, as shells don't natively pick up functionality from each new directory. My 2 cents: put the alias or function definition into the documentation for your repo and let people add it to their own dot-files. | |
| Sep 22, 2016 at 22:16 | answer | added | bashBedlam | timeline score: 7 | |
| Sep 22, 2016 at 10:46 | history | edited | Jeff Schaller♦ |
edited tags
|
|
| Sep 22, 2016 at 10:41 | comment | added | Alex Antonov | Jeff, bash only... | |
| Sep 22, 2016 at 10:24 | comment | added | Jeff Schaller♦ | Any shell or specific to one or more? | |
| Sep 22, 2016 at 10:14 | comment | added | Alex Antonov | Yes, only in one specific directory | |
| Sep 22, 2016 at 9:59 | comment | added | Jeff Schaller♦ | Similar: unix.stackexchange.com/q/21363/117549 | |
| Sep 22, 2016 at 9:49 | comment | added | Jeff Schaller♦ | And it should only work in one specific directory -- not any subdirectory? | |
| Sep 22, 2016 at 9:34 | comment | added | Jeff Schaller♦ | Would you be ok if it was a function instead? | |
| Sep 22, 2016 at 6:06 | history | asked | Alex Antonov | CC BY-SA 3.0 |