The terminal emulator included in Mac OS X.

learn more… | top users | synonyms

0
votes
2answers
328 views

How can I colorize ls on mac os x terminal?

I've seen everywhere I look: Edit .bash_profile on your home directory. The thing is, I don't have any .bash_profile on my home directory. At least I do pico ~/.bash_profile and I see nothing. ...
3
votes
2answers
529 views

Launching Terminal.app in the working directory

I have set up a script that launches the terminal with this bash command: open script.command script.command is a Perl script, and it gets executed just fine. (This may look a little convoluted, ...
1
vote
1answer
453 views

Weird Terminal error when opening TextEdit.app

I was trying to edit my host file with the command sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/hosts I got the following error: Sending synchronize message <dictionary: ...
4
votes
1answer
2k 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, ...
1
vote
1answer
3k views

Perl for matching with regular expressions in Terminal?

I'm trying to familiarize myself a little with Perl to use for regular expression searches in Terminal (Mac). Now, I'm not really looking to learn Perl rigourously, just trying to find out how to do ...
1
vote
1answer
363 views

Mac terminal propmt color for specific directories

I'm looking to setup visual alerts when working within certain directories within mac osx terminal. Specifically, I have several projects running within the same framework which can easily lead to ...
0
votes
1answer
213 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 ...
3
votes
1answer
2k views

Blank Terminal (no response) on Mac

I've seen numerous cases of this all over the internet, and the solution is (optionally: Do _ and then) reboot. The reboot is the only necessary step, but I'd like to remove that step (find the root ...
7
votes
2answers
2k views

Equivalent of 'clear' command when using tail -f

I am using the tail -f command to follow an error log, and I often want to "clear" the terminal, much in the same way that the clear unix command moves everything above the top of the window. Is there ...
2
votes
1answer
292 views

Set Terminal.app proxy icon with xterm and screen

For quite a while, I've been using the supplied answers for Resume Zsh-Terminal (OS X Lion) to set the proxy icon for Terminal.app while running under zsh, and so far, it's been working quite well. ...
5
votes
2answers
6k 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?
3
votes
2answers
1k views

How to set the title of the tab in Terminal.app to the remote server I'm logged in to

I use one Mac to do work on several others. What I'd like to do is find a way to programmatically set the title of a Terminal.app tab to the name of the server I'm ssh-ed into, so I can determine at ...
6
votes
1answer
579 views

Enabling mouse scrolling in OS X terminal man pages

I have been trying to find a way for the OS X Terminal to accept the mouse input to scroll in the man pages. I have installed SIMBL and MouseTerm but this does not enable scrolling in the man pages. ...
6
votes
3answers
447 views

When I paste a command on my bash prompt it is not in history — how can I add it?

When I paste a command to my OS X or Ubuntu bash prompt using CmdV, the command is not in history – even if it is executed. The command is in history only if I type it. How to enable that pasted ...
1
vote
2answers
2k views

Load RVM environment in Screen and ZSH

This topic has been driving me nuts for a while now, and I'd like to be able to figure out what's going wrong. I use zsh with screen in my terminal, and have been for a while. However, for whatever ...
8
votes
3answers
9k 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?
38
votes
1answer
37k views

How to use Terminal to delete all .svn folders recursively?

what command can I type into Terminal so that I can: delete all .svn folders within a folder (and from all subdirectories) but not delete anything else ?
1
vote
2answers
3k views

Mac OS Lion Terminal: Add blank line after command output?

How can I configure my .bash_profile to add a blank line after any command output?
22
votes
3answers
29k 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 ...
1
vote
2answers
593 views

Script for toggling OS X “Show Hidden Files” in Terminal

Is there a way to toggle the hidden files visibility on/off with a terminal script? In pseudocode: if can view hidden files set com.apple.Finder AppleShowAllFiles false else set ...
0
votes
1answer
226 views

No colors in Terminal.app

Somehow my colors in Terminal.app are completely borked. If I load up Vim with syntax on, there are no colors, but line numbers are underlined (and so are some other parts). It looks really really ...
4
votes
1answer
9k views

How to list network shared items in terminal

Is there a way to list the network shared items in the Terminal command line the way Finder sees them in the Mac OS X GUI?
2
votes
1answer
419 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
3answers
58 views

How can I see the size of each file in a particular directory in the terminal?

When using the terminal, is there a command that allows you to see the size of each individual file in a particular directory?
0
votes
2answers
2k 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
20k 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 ...
9
votes
2answers
3k views

How can you customize your terminal bash prompt with smiley faces?

I'm trying to figure out how I can customize my terminal's bash prompt to use smiley faces. What I want (as seen in the example blow) is for the cwd to be separated from the prompt by a \n and show a ...
11
votes
1answer
5k views

enabling colors in the python interactive shell on OS/X

I have just modified my .bash_profile so as to have colors in iTerm and Terminal. Now, I want to enable syntax highlighting for the Python interactive shell, IDLE-style. How to do that?
1
vote
2answers
444 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 ...
0
votes
2answers
232 views

Why can't I open the easter eggs like Tetris on Emacs?

I am in terminal on a Mac, and I type in emacs tetris. It comes up with a blank page and something at the bottom saying: Loading image...done, but that is it. I leave it for a little while but nothing ...
2
votes
1answer
841 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.
2
votes
2answers
2k views

Why can't I paste from clipboard to OS X Terminal.app when it contains special characters?

For instance, if I have one or more of the following characters copied into clipboard, a paste into the terminal window will not work: “ ” ’ – This is pretty annoying, actually, one would think ...
0
votes
2answers
8k 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" ...
0
votes
1answer
405 views

On the Mac, how can I get saved Terminal window groups (or other saved window groups) to work across multiple Spaces?

I've got a nice startup script on my computer that opens up the various applications I need to get to work, making good use of Terminal's "Windows"->"Save Windows as Group"/"Open Window Group" option. ...
1
vote
1answer
258 views

Adding an alias to .bash_profile removes other commands?

Before touching .bash_profile: mongod launches a mongo server, rabbitmq-server launches a rabbit server, etc. But once I add: alias ethertunes="sudo NODE_ENV=development nodemon --debug ...
1
vote
0answers
300 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
409 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
171 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 ...
1
vote
2answers
2k views

Can't copy/paste to/from system clipboard in Terminal on Mac

I can't copy or paste to or from the system clipboard within the Terminal. Neither Cmd-C/Cmd-V nor menus work. Instead, Terminal seems to be using it's own buffer for copy/paste operations. I am ...
0
votes
1answer
424 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. ...
0
votes
1answer
2k views

iTerm 2 on Mac OS X - How to get rid of all characters before the $ on each line?

I installed iTerm 2 but my shell windows show: "computer name":"current directory" "user" $ This is far too long. I'd like to just see: "current directory" $ Is there an option for this? I ...
26
votes
1answer
3k 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 ...
7
votes
4answers
21k views

Does anyone have a Mac Terminal script to remove hidden files?

My car stereo can play music from USB flash drives, so I asked about copying MP3s from an iTunes playlist. That worked fine, but my stereo wouldn't play the MP3 files. I eventually put the flash ...
15
votes
5answers
18k 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 ...
4
votes
3answers
2k 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
300 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 ...
2
votes
1answer
1k views

launch application from osx terminal in 32bit mode

How can I pass an argument to the "open" command to launch an application from the terminal in 32-bit mode? open /path/to/some.app [--args arguments] I have to manually check and uncheck the ...
16
votes
2answers
5k 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 ...
21
votes
2answers
9k views

Use terminal scrollbar with tmux

I know how to scroll in tmux using the keyboard, but I noticed that it looks like there's a way to use the terminal scrollbar with GNU Screen. Can this be done with tmux?