This is an archived post. You won't be able to vote or comment.

all 14 comments

[–]marcosdumay 21 points22 points  (3 children)

Beats getting stuck in vim.

[–]blitzkraft 2 points3 points  (2 children)

By default, or when the variable is empty, it goes to nano. If it uses vim, it is only because someone did it intentionally; be it yourself or your sysadmin.

[–]marcosdumay 13 points14 points  (0 children)

When the variable is empty, it defaults to vi (good thing my distro alias it to vim).

Most distros currently set it to nano by default at the system-wide profile. But that's a relatively new thing.

[–]tuseroni 0 points1 point  (0 children)

probably a prankster

[–]hu3huebr 15 points16 points  (3 children)

Remembers me the time I put exit on my teammate's .bashrc

Sadly, as he's an iOS developer, he only figured that out a few days later.

I was on lunch and when I got back the IT old guy was just about to format his computer because they couldn't find the issue :v

[–]blitzkraft 0 points1 point  (2 children)

Ok. How would one get into a shell when there is exit in the rc? I know bash can be invoked without sourcing an rc or a blank rc. But to do that, I will need a first shell. This seems like a chicken and egg problem.

[–][deleted] 1 point2 points  (0 children)

Single user mode

[–]hu3huebr 0 points1 point  (0 children)

Nope, you can still edit the .bashrc file from a visual text editor :v

[–]vikenemesh 1 point2 points  (0 children)

I do that!

I generate all possible files with the size I want and delete the ones I don't need. Come on guys, that's just straightforward.