Reputation
2,479
Top tag
Next privilege 2,500 Rep.
Create tag synonyms
Badges
4 20 43
Impact
~195k people reached

Nov
8
revised tmux bottom bar color change
it's == it is
Nov
4
awarded  Famous Question
Oct
29
awarded  Notable Question
Oct
29
comment Is it possible to create and use menus in (terminal-based) vim?
@Alexey: thanks! that's very helpful to know... if I scroll down to section "5.2 Creating New Menus" that looks like it'll do what I want.
Oct
15
comment How do I get rid of Cygwin's /cygdrive prefix in all paths?
@underscore_d: fair enough. thanks for the info!
Oct
6
awarded  Popular Question
Oct
1
awarded  Nice Question
Sep
22
awarded  Good Answer
Aug
30
comment Is the chromebook Linux based at its core?
SSH was just an example. A more detailed list of what is included—or at least some more examples—would be useful, and perhaps also some examples of what is not included.
Aug
30
revised Is the chromebook Linux based at its core?
fix egregious grammar errors, clean up style, and improve clarity
Aug
18
comment How do I *reliably* and *simply* get the current shell interpreter name?
yes, I've run into this already. The worst thing is fish won't even load a script that has syntax it doesn't like, so you can't just send STDERR to /dev/null. But I have a solution, which I will post once I've got it all working.
Aug
17
comment How do I *reliably* and *simply* get the current shell interpreter name?
@StéphaneChazelas: I think you are right that it's generally not worth the effort (certainly generally not, and maybe always not) but I'm not ready to give up... I think the problem breaks down into 2 problems really: 1st getting the shell name, and 2nd using it. Both (at least practically) require some outside help to avoid the limitations of the shells that you could be using. I've solved the first problem with a small utility written in Crystal, and when I find time I want to solve the 2nd one as well. Btw, your solution is brilliant, but obviously very complex.
Aug
11
comment How do I *reliably* and *simply* get the current shell interpreter name?
@G-Man: updated. Please take a look and let me know if you have any more questions.
Aug
11
revised How do I *reliably* and *simply* get the current shell interpreter name?
added 1351 characters in body
Aug
11
comment How do I *reliably* and *simply* get the current shell interpreter name?
@G-Man: I'm curious why you haven't "unmarked" this as a duplicate yet. I can give you several more differences between what I'm asking for and Stéphane’s answer if you need it.
Aug
10
awarded  Popular Question
Aug
9
comment How do I *reliably* and *simply* get the current shell interpreter name?
Also, his approach doesn't give just the name, and it's certainly not simple. I've worked out an approach that I think meets all these criteria, which I've published to GitHub.
Aug
9
awarded  Organizer
Aug
9
revised determine shell in script during runtime
since the accepted answer is for Linux, the questioner seems to be only concerned with Linux (I've not tested AIX or Solaris or BSD, but the accepted answer fails on OS X)
Aug
9
comment determine shell in script during runtime
Yes, the latter: from an interactive zsh session I ran whatshell.sh.