The terminal emulator included in Mac OS X.

learn more… | top users | synonyms

11
votes
1answer
7k 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
535 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
257 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 ...
3
votes
1answer
1k 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
3k 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
9k 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
435 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
268 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
411 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
414 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
199 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
3k 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
441 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. ...
1
vote
1answer
4k 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 ...
31
votes
1answer
4k 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 ...
8
votes
4answers
28k 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 ...
16
votes
5answers
19k 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 ...
6
votes
3answers
3k 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
3k 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
319 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
2k 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 '32-...
17
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 ...
25
votes
2answers
12k 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?
1
vote
2answers
1k views

Is it possible to stream windows applications to Linux via VNC?

Is it possible to stream windows applications to Linux via VNC? Need only some apps not a whole desktop.
3
votes
2answers
1k views

Where to learn more about OSX terminal app keyboard settings codes?

If you look at the Terminal->Preferences->Settings->Keyboard pane it displays how some keyboard keys and combinations map to shell strings. The list seems really strange to me as it's missing a lot ...
5
votes
2answers
2k views

Capturing remote output locally in Mac Terminal

I want local programmatic access to ssh output in Mac Terminal. First, I tried redirecting the output of each command to a file. The file was perfect, but of course it was on the remote server, and ...
2
votes
1answer
468 views

Mac Terminal Color Changes after ssh

Whenever I ssh to my linux system from Mac. It started using remote system color. Is there a way I can force it to use original color ?
11
votes
1answer
4k views

Making ls aware of “hidden” file flag

Is it possible to make ls aware of the hidden file flag on Mac OS X? Currently, a simple ls -lO produces: $ ls -lO total 0 drwxr-xr-x@ 84 danielbeck staff - 2856 29 Mai 22:44 Applications ...
1
vote
3answers
865 views

On a Mac, how can I group together commands I want run into a alias?

In my .bash_profile I have created alias to commands that I run often. What if I want to group together multiple commands together, and they should run in serial one after the other. How would I do ...
1
vote
2answers
2k views

Mac: truly detach process from Terminal.app

On Mac OS 10.6.6, I want to make a bash alias or function that will run Google Chrome. Launching Chrome is easy: "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome". The problem is how to ...
2
votes
1answer
2k views

How to remove the scrollbar in Terminal.app on Mac OS X 10.6?

If there is a way. I know iTerm2 has it.
1
vote
1answer
653 views

How can I get the Snow Leopard Terminal app to act like the Leopard Terminal app?

The delimiters for double-click text selection in the Leopard Terminal app (version 2.0.2) included slash (/) and period (.) -- the delimiters for double-click text selection in the Snow Leopard ...
2
votes
3answers
225 views

Terminal.app characters set changes — completely illegible

I was just ssh'd into my server (Ubuntu 10.04.2), and I ran aptitude (in interactive mode). Once I pressed one key (one of the letters, g I believe), it turned into this (not just the SSH session; ...
0
votes
2answers
772 views

Changing OS X bash/terminal to a dark scheme

I followed the directions here and the colors are correctly showing, however the background is still white, what else do I need to do? Note: I did a sudo nano ./bash_profile instead of .bashrc
2
votes
1answer
876 views

How to prevent Terminal.app from closing when ssh is running?

Usually if a program is running in Terminal.app, when you try to close it it will give you a warning "Do you want to close this Window?" This happens to almost everything that I have tried, including ...
1
vote
1answer
399 views

Terminal.app fonts broken on Mac Snow Leopard

About an year ago I installed gnome fonts on my MacBook Pro and I use them for Terminal.app Today I was using Terminal with three windows open and suddenly the app has quit (I don't know if I ...
1
vote
1answer
981 views

How can I prevent OS X Terminal.app from overriding vim colours on a remote system?

As my primary workstation, I use a mac running OS X 10.5. I spend much of the day ssh'd into remote systems and am working on grokking vim. One of the things I want to do is experiment with different ...
1
vote
3answers
684 views

Display Unicode Tetris boards in Terminal — or how to dynamically decrease line height

I am using black squares \xe2\x97\xbc◼ and white squares \xe2\x97\xbb◻ to display tetris boards in my shell. Unfortunately there is quite a visible line spacing between rows and that just doesn't look ...
29
votes
4answers
33k views

How to have full directory path always shown in mac terminal (like linux terminal)

In my ubuntu terminal I have always current directory shown completely. Just like this: blabla@blublu:~/music/my_album/classical/beethoven$ But in my Mac (Mac OS X 10.6.5) terminal does not show ...
0
votes
2answers
469 views

Newbie OSX problem in terminal with running a command on a file in a different folder

I'm trying to run a command on a different folder. The command I'm trying to run is \Applications\VirtualBox.app\MacOS\VBoxManage modifyhd Windows98.vdi --resize 1000 Windows98.vdi i the the ...
3
votes
1answer
2k views

What should $TERM be on Mac OSX 10.6.6?

echo $TERM gives me xterm-color. Is that right? I'm having issues with vim and was told to change it to dtterm. Why? I've learned that I can change this value in Terminal.app Preferences... under the ...
4
votes
2answers
26k views

Mac OS X Terminal get in Macintosh HD? For using Git and Github

I wanted to get started with using Git and Github especially for installing Web software to my htdocs directory. htdocs is the folder in which you put all your websites that then run by using MAMP -- ...
3
votes
1answer
3k views

Weird behaviour/rendering of backspace in Terminal.app when SSHing into zsh using tmux/screen

I just stumbled upon a weird problem. When I SSH into my server (centos, zsh) and I type some stuff and hit backspace It looks like a space - but internally it really deleted the characters. ls -l a ...
22
votes
5answers
6k views

Copy colored output from Mac OS X terminal

I see a nicely colored output in my terminal. The terminal has a "Export Text As" command but it saves a plain-text file without the colors. Same with copy&paste. Do you know a way to save ...
12
votes
3answers
4k views

name terminal/tabs

Is there a way to name a terminal window or even better give each tab a name. at the moment they just get the underlying process name : for example a tab running elasticsearch gets the name java
0
votes
3answers
4k views

How can I automatically start two SSH sessions in two Terminal tabs?

In my Mac, how do I write a script that can do this? Open "terminal". In that terminal, "ssh myserver" Open a new "tab" inside the terminal. In that tab, "ssh myserver2" Then, how would I run this ...
1
vote
2answers
1k views

Mac OS terminal : Select other device

I just can't figure out how to do this. I'm quite beginner with the terminal, I have no problem to browse between files with "cd", but don't know how to browse a different device than my hard drive (...
1
vote
1answer
247 views

Ctrl-a echoes “^A” in Terminal.app

On a brand new MacBook Pro, the keyboard doesn't seem to act as expected for Terminal.app. I'm expecting Ctrl-a and Ctrl-e to be home and end functions, but I just get "^A" and "^E" echoed to the ...
1
vote
1answer
374 views

bash terminal - prompt cursor changes from $ to > upon entering invalid command

I used the Terminal application in Mac OS X to remove some hidden files (i believe this uses the bash shell by default). I inadvertently misspelt my command and, upon hitting the Enter key, my prompt ...
2
votes
3answers
28k views

Connect to another Mac via Terminal?

I need to connect to a Mac server from my MacBook using Terminal.app. If I open Finder, I can see it in my "SHARED" list. I can "connect as" an authenticated user and all that. But how do I connect ...