The terminal emulator included in Mac OS X.

learn more… | top users | synonyms

0
votes
3answers
528 views

All terminal commands (like ls, cd, edit, open) are returning errors on my Mac [duplicate]

Possible Duplicate: How do I reset the $PATH variable on Mac OS X? From what I can tell from reading other questions/answers is that my .bash_profile file may be corrupt. If I type ...
2
votes
1answer
774 views

Using MacPorts within FISH shell

I have been playing around with FISH for a few days and I just tried to switch it to my main shell. That worked fine but now none of my software from MacPorts is recognized. I installed and followed ...
1
vote
1answer
269 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
0answers
466 views

Mac Terminal.app: disable red notification badge?

As of OS X 10.7 (I think?) Terminal.app will show a red badge counting the number of bells the encountered while the terminal is in the background: Is it possible to dissable this badge?
0
votes
1answer
99 views

Detecting used terminal application (iTerm2)

Can one detect what terminal application is being used? I want the actual application, not TERM env in the question. I'd like to detect iTerm 2 / Terminal.app so I could set OSX specific keyboard ...
1
vote
3answers
3k 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. ...
0
votes
2answers
274 views

How can I Pbpaste an image in to the command line?

Current use case: I select "copy image" on some random png in safari. I type pbpaste into terminal, and get the link to the image. Is there anyway to get the binary data instead?
0
votes
2answers
99 views

How to find out why openning a Terminal in OS X is very slow sometimes?

Is there a way to verbosely print everything that gets executed when I open a Terminal in OS X? Sometimes it takes up to 10 seconds for the Terminal to become ready for interaction and I want to know ...
0
votes
2answers
262 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
396 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
322 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: ...
1
vote
1answer
724 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
2answers
1k views

Perl for matching with regex in Terminal?

I'm trying to familiarize myself a little with perl to use for regex searches in Terminal (Mac). Now, I'm not really looking to learn Perl rigourously, just trying to find out how to do some simple ...
1
vote
1answer
314 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
172 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
1k 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 ...
5
votes
2answers
1k 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
251 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. ...
4
votes
2answers
4k 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
852 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 ...
4
votes
1answer
320 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. ...
1
vote
2answers
256 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
1k 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 ...
5
votes
3answers
5k 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?
16
votes
1answer
16k 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 ?
0
votes
2answers
1k 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?
11
votes
2answers
10k 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 ...
0
votes
1answer
210 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 ...
2
votes
1answer
4k 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
315 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
3answers
13k views

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

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 ...
7
votes
2answers
2k 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 ...
8
votes
1answer
3k 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
276 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
196 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
456 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
1k 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
5k 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
318 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
208 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
241 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
318 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
146 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
1k 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
355 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
957 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 ...
23
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 ...
3
votes
2answers
10k views

Mac Terminal Script to remove hidden files

My car stereo can use USB flash drives to play music from, so I asked about Copying MP3s from an iTunes playlist. That was all fine and dandy, except my stereo wouldn't play the MP3 files. I ...
13
votes
5answers
16k 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 ...