Timeline for Using a bash alias or function with environment variables on multiple lines
Current License: CC BY-SA 3.0
12 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 7, 2017 at 20:18 | history | tweeted | twitter.com/StackUnix/status/938865242548985858 | ||
| Dec 7, 2017 at 19:43 | comment | added | Goro | So, it turns out this was all just an issue with some Tmux weirdness. I'm not really sure what was happening, but the alias started working after I killed my session (yes, I was sourceing the whole time, it just wasn't doing anything I guess). Still, I ended up using a function anyway, so I'm glad I asked, thanks everyone! :-) | |
| Dec 7, 2017 at 19:39 | vote | accept | Goro | ||
| Dec 7, 2017 at 17:54 | answer | added | glenn jackman | timeline score: 3 | |
| Dec 7, 2017 at 17:40 | answer | added | Stéphane Chazelas | timeline score: 13 | |
| Dec 7, 2017 at 17:24 | answer | added | ilkkachu | timeline score: 5 | |
| Dec 7, 2017 at 17:23 | comment | added | Dani_l | Just use a function | |
| Dec 7, 2017 at 17:23 | comment | added | Jeff Schaller♦ | alias foo=' \ (ENTER) E1=1 \ (ENTER) E2=2 \ (ENTER) env | grep ^E.= (ENTER) ' | |
| Dec 7, 2017 at 17:22 | comment | added | Jeff Schaller♦ | Works for me; how does it not work for you? | |
| Dec 7, 2017 at 17:21 | history | edited | Jeff Schaller♦ | edited tags | |
| Dec 7, 2017 at 17:14 | review | First posts | |||
| Dec 7, 2017 at 17:38 | |||||
| Dec 7, 2017 at 17:09 | history | asked | Goro | CC BY-SA 3.0 |