4
votes
2answers
5k views

How to reset mac PRAM through the command line in Lion/Mountain Lion?

I'm trying to write a script to automate a PRAM reset and I've seen a lot of old guides that tell me to use the following command to reset the Mac's PRAM via the terminal: nvram boot-args="-p -r" ...
0
votes
1answer
110 views

Have to repeatedly press enter for Terminal commands to work — OS X 10.7.3 Lion

I've encountered a very, very strange error. Whenever I type a command, I must press enter several times before the Terminal executes the command. Note that this is not a hardware error: I can still ...
1
vote
1answer
326 views

DTerm: How to open into iTerm2 rather than Terminal.app by default?

In DTerm, one can open a full terminal application by typing ⌘-↩ after a command entered at the DTerm prompt. In a recent release, it is noted that support has been added for iTerm2 in DTerm via an ...
1
vote
3answers
5k views

Reset Mac OS X Terminal to default

I accidentally renamed my "Basic" terminal profile under Terminal -> Preferences -> Settings. I renamed it back but this got me wondering if there was a way to reset all terminal settings to defaults. ...
3
votes
1answer
923 views

Scroll Bar on OS X Lion Terminal won't go away [duplicate]

Possible Duplicate: Snow Leopard hide scrollbar in terminal? I have this scrolling bar on the right side of my terminal because I accidentally split the window and I've merged the windows, ...
0
votes
1answer
186 views

Terminal window fills the screen in OS X Lion

When I open Terminal, it fills the screen, there is no way to minimize it. There is no toolbar at the top. It is just a screen of white, with the bash prompt. I am used to Linux, and controlling a ...
4
votes
2answers
5k views

Syntax highlighting in Terminal Mac OS X

How can I highlight different parts in the Mac OS X Terminal app? For example a different color for input and output? Are the pre-defined color themes I can activate/download?
6
votes
3answers
6k views

How to kill a zombie process on a mac

How to kill a zombie process or find it's parent process on a Mac using the Terminal?
12
votes
2answers
14k views

Setting iTerm2 as the default terminal (OSX Lion)

I would like to set iTerm2 instead of terminal.app as my default terminal. Go2Shell for example let you open a terminal to the current directory in Finder. I want to ba able to use iterm2 instad of ...
2
votes
1answer
357 views

How can I externally open a terminal with specific “settings” in Mac OS X Terminal?

How can I cause Terminal to open a new window with a specific “Settings”, without having to mouse into the File menu, but rather by opening a file or running a command or AppleScript (i.e. something I ...
0
votes
2answers
1k views

Can you do any damage with “rm -R *” on a Mac?

I just cd to "/" on a Mac and accidentally entered "rm -R *". I know the command means delete everything in "/" but I wasn't sudoing, should I reinstall Mac OS? Or does a mac protect against this sort ...
7
votes
4answers
15k views

How do I make Vim beautiful (read: Textmate font/color ) on Mac OS X Lion? [closed]

I am just starting to make the Textmate to Vim switch. I love it, but it's so ugly. I'm running Mac OS X Lion and needed Ruby support so I am using Vim 7.3 as installed via Homebrew not the Vim Lion ...
1
vote
2answers
333 views

Have a script execute a command randomly every now and then

I have a script which I am scheduling to run daily with Cron. However I want a certain section of the script to only run randomly occasionally, with a certain probability of executing on any given ...
2
votes
1answer
582 views

How can I stop OS X Lion from reopening multiple terminal windows?

How can I stop OS X Lion from reopening multiple terminal windows when I relaunch Terminal.app? When I launch terminal, two windows spawn.
0
votes
2answers
6k views

How do I change the computer id on my mac?

I bought a late 2009 Mac Mini recently, updated it to Lion, and was rather frustrated to find that even after changing the Bonjour, DNS, and local network name, the terminal prompt (and "Computer ID" ...
1
vote
0answers
251 views

osx - Set application access to certificate via command line

I want to allow permanent access to certificates for certain app (eg codesign) via command line. The gui equivalent would be clicking "Always Allow" when prompted. However I only have access via SSH ...
2
votes
1answer
350 views

MacOS X Lion Terminal and auto-maximize

Sometimes when I'm working in Terminal, it auto-maximizes the window. It is frustrating because I'm referring to another window that gets obscured when the auto-maximize occurs. What can I do to ...
5
votes
1answer
158 views

Can I scroll Terminal down when there is nothing to scroll?

When I reach the bottom line, I want to be able to “scroll” down the virtual space so the prompt is at the top again (like in the beginning): Is there any way to do this? This becomes even more ...
0
votes
1answer
379 views

Switching terminal character encoding while using TotalTerminal

I'm using the TotalTerminal 1.1.3 terminal.app plugin on Lion (10.7.1) for a visor-style terminal. TotalTerminal uses/creates a special profile which is used for every new tab opened in terminal.app. ...
25
votes
1answer
2k views

What does Terminal app's “Show Alternate Screen” do? (OS X)

Today, I discovered a menu item called "Show Alternate Screen" in Terminal.app. I am just curious about what it does. It seems to be sharing the same shell process (unlike tabs), since I see output ...
15
votes
5answers
17k views

Hostname issue in Mac OS X Lion

I've recently bought myself one of the new mid-2011 Mac Minis with OS X Lion, I'm completely new to Mac OS but I've used linux quite a bit before. The problem I'm having is that at the terminal my ...
3
votes
3answers
1k views

Ctrl + A doesn't work in Bash Terminal on OS X Lion

In bash windows using the Terminal.app on OS X Lion, I can no longer use ctrl + A as a shortcut for going to the start of the command line. Other ctrl characters like ctrl + E don't work any longer ...
5
votes
2answers
2k views

Different Terminal color theme for remote connections?

Is it possible to set Terminal to use a different theme for remote connections. I often have several Terminal windows open at once for both local and remote work and it would be really handy to have ...
4
votes
1answer
273 views

OS X Lion man pages missing flags

I upgraded to Mac OS X 10.7 on Saturday, and have been restoring some of my applications that I build from source, when I noticed that the man pages are failing to render the command line flags ...
14
votes
2answers
4k views

Resume Zsh-Terminal (OS X Lion)

OS X Lion has "Resume" feature, i. e. when you reopen an app it restores all windows and their contents. That works for Terminal as well. But if you use Zsh instead of Bash it doesn't restore opened ...