Reputation
249
Top tag
Next privilege 250 Rep.
View close votes
Badges
2 8
Newest
 Yearling
Impact
~39k people reached

  • 0 posts edited
  • 0 helpful flags
  • 39 votes cast
Mar
30
comment Automatically open text files in editor instead of attempting to run them?
@cas They're in the same general class of criticizing the OP for even wanting to do what they want to do instead of providing useful information. (I'm not talking about comments indicating genuine curiosity, but instead "why would you do this" as a rhetorical question.) I still don't think this is a dumb idea.
Mar
30
comment Automatically open text files in editor instead of attempting to run them?
@cas I'm not really a fan of "why would you do this" comments. I don't really see the harm here, especially since I do most of my work on a virtual machine, with all my important files backed up elsewhere, so even if I somehow destroy the Linux system (unlikely--I've yet to even have a close call, as far as I can remember) I'll merely waste a few hours at most.
Mar
29
comment Automatically open text files in editor instead of attempting to run them?
Hm, interesting. I might try that.
Mar
29
comment Automatically open text files in editor instead of attempting to run them?
@infixed Though, actually, I suppose this general idea could be extended to simply use something like xdg-open. Though I note that gnome-open (on my system) uses gvim (not really sure why, since changing EDITOR and VISUAL doesn't seem to affect it), while xdg-open uses LibreOffice.
Mar
29
comment Automatically open text files in editor instead of attempting to run them?
@infixed I use Vim for, well, everything, because it's, well, Vim. But I suppose that could be useful for someone.
Mar
29
comment Automatically open text files in editor instead of attempting to run them?
@JeffSchaller Fair enough. I usually edit files outside of the current directory, though, so it doesn't usually matter whether I use ./. And I definitely do not have . in my PATH!
Mar
29
revised Automatically open text files in editor instead of attempting to run them?
added 123 characters in body
Mar
29
asked Automatically open text files in editor instead of attempting to run them?
Mar
12
comment Is the xkcd universal install script a good idea?
@FaheemMitha I would, but I have about 200 rep. That is not sufficient.
Mar
12
comment Is the xkcd universal install script a good idea?
@Wildcard fair enough!
Mar
11
comment Is the xkcd universal install script a good idea?
Ugh, how did this get closed? It is important that people know not to take this script seriously, because running it is a terrible idea.
Mar
11
comment Is the xkcd universal install script a good idea?
I'm not sure. apt-get, at least, returns an error code when the package can't be found. But yes, it's still incredibly sloppy.
Mar
11
comment Is the xkcd universal install script a good idea?
Sure it would; turn all the &s into `||\`.
Feb
25
comment How to hide mouse cursor in gnome-shell and gdm display manager?
Depending on your setup, you may be able to use something like unclutter. See this question, which has several useful answers, including unclutter and alternatives.
Feb
4
comment Force Bash 4 'globstar' option to ignore symlinks
Wonder why the downvote....I'm not bashing bash.
Jan
28
asked Why doesn't 'sudo' skip hostname-checking when the command can be run on 'ALL' hosts?
Jan
6
comment What does yes $(yes yes) do?
@strugee You can get "infinity infinite times" using xargs: yes yes | xargs -P 0 yes (or without -P 0 for single-process infinity)
Jan
5
comment Advantages of using set -o vi
I don't work on hundreds of servers, but I do use sshrc to keep my bash setup similar between different computers when sshing. Of course, that doesn't help when I'm using a machine locally that doesn't have my .bashrc stuff on it.
Dec
16
comment Is there ever a good reason to run sudo su?
@terdon Huh, I was unaware of the -u flag for sudo. Semantically, though, I still prefer sudo su -- "as a super user (su-), run (-do) a single command: switch users (su)." Plus it's simpler to type on a standard QWERTY keyboard.
Dec
15
comment Is there ever a good reason to run sudo su?
I assume you're only asking about cases where you want to become the root user, correct? sudo su is extremely useful for becoming a non-root user.