1
vote
0answers
46 views

tmux shows weirdly encoded history on OSX

If I do the "history" command in tmux, I get a really weird result. Anyone got a hint on what to do to get normal output? The output looks like this: 477 ◆┬▒⎺▒└☃◆ 478 c▒├ ◆┬▒⎺▒└☃◆ 479 ...
0
votes
1answer
30 views

Why does iterm2 toggle font rendering with every other boot

I don't reboot my mac very often, so I can't really state if this occurs with every reboot/relogin, but I dare to say, pretty much every time the font rendering of my iterm2 becomes thicker or thinner ...
0
votes
1answer
214 views

Mac OSX Lion 10.7.5. Is there any way to permanently disconnect from a server?

Every time I open terminal on my Macbook Pro, I get the IP address of a server I once ssh'd into. I allowed someone to use my computer to access his server and now it seems like there's some permanent ...
1
vote
0answers
318 views

Boot Mac Lion into Command Line

I have a Macbook currently running Mac OS X Lion 1.5.7, and I primarily use the terminal for most of my work. While it is nice to have the terminal on top of the Aqua GUI, I would like to be able to ...
0
votes
1answer
2k views

bash ls command not found on mac osx

Having an issues with my terminal. Every time I tap in a command such as ls i get Patricks-MacBook-Pro:~ patrickwalsh$ ls -bash: ls: command not found Running export ...
0
votes
1answer
2k views

How can I set a static IP, gateway, net mask, and dns using terminal / applescript - OS X 10.7.5

I use my macbook at home and at work. At work I need to use a static IP, gateway, DNS and net mask. At home I use it in DHCP mode. Manually setting them every day really sucks. How can I set them ...
1
vote
0answers
295 views

Installed new version of php but server still uses older version

I just upgraded to PHP 5.4.11 from 5.3.15 following this link. After upgrading I ran php -v but it shows me following output. Zafars-MacBook-Pro:php-5.4.11 zafar$ php -v PHP 5.3.15 with Suhosin-Patch ...
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 ...
4
votes
3answers
309 views

UP arrow key on Apple External Keyboard not recognized in OSX Lion terminal

I have a MacBook pro for work use, and just got my hands on an apple USB keyboard. When I am in the terminal, using the external keyboard ONLY I receive weird characters when I hit the UP arrow key. ...
3
votes
2answers
2k views

$PATH issues with OSX Lion

I'm having some issues with running mysql from terminal: macmini:~ michael$ which mysql /Applications/XAMPP/xamppfiles/bin/mysql macmini:~ michael$ mysql -bash: /usr/local/mysql/bin/mysql: No such ...
1
vote
1answer
330 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 ...
0
votes
1answer
833 views

OSX / Unix Terminal Color Template Change

I've been trying to decorate my Terminal on my MacOSX 10.7.3. As i surfed and found is to write following color codes into the file called .bash_profile: export CLICOLOR=1 export ...
0
votes
1answer
178 views

Can't use default Terminal theme on my MacBook Pro Lion

I have my terminal settings like so: On startup, open: New window with settings - Pro In settings I have the "Pro" theme selected as "Default" However, every time I open the terminal it will open ...
1
vote
4answers
923 views

Macvim lags while Vim on terminal is buttery smooth

I am running OS X Lion 10.7.3 and Macvim runs significantly slower than vim on the terminal for me. All movement commands in Macvim are much slower. Moving up and down in visual mode is equally as ...
0
votes
1answer
760 views

Username has changed on Mac OS X Lion

My username (the first thing you see on every line in the Terminal) has changed. It used to be my first name (Jonathan), but it has changed to the name of a freelance web project I'm currently working ...
1
vote
1answer
191 views

Finding Group name by using GeneratedUID

In Mac OS X Lion, given a group's GeneratedUID, what command can I do a reverse lookup and find the group name? DSeditgroup (group name) will give me the GUID, but I'm looking for the reverse. Thank ...
6
votes
2answers
7k views

Enabling SSH Daemon from Terminal (OS X Lion)

I am trying to find a way of turning on SSH through terminal, instead of opening settings and turn it on that way. Or perhaps a way to turn SSH on by running a .pkg file? I am running OS X Lion, but ...
0
votes
2answers
392 views

Compress a folder of PDF files into separate zip archives

I wanted to take a folder full of PDF files and create a number of separate zip files, after following the advice on this question everything worked *almost*perfectly. Here's what happened: When I ...
0
votes
0answers
470 views

Software update shows “P⁣⁣roblem with the system installer tool” error in OS X Lion

I can't update my system. Does anyone know what the problem is? sudo softwareupdate -i -a Password: Software Update Tool Copyright 2002-2010 Apple Downloading Digital Camera Raw Compatibility ...
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?
0
votes
2answers
444 views

Messed up terminal

I sometimes manage to get my terminal messed up until I type "clear". This occurs in various ways, sometimes when writing individual commands, sometimes when editing something in a text editor. Now I ...
3
votes
2answers
2k views

How can I hide/show the Wi-Fi menu item from the Terminal in OS X?

I want to be able to hide and show the Wi-Fi menu item from the Terminal. Can I do this with the defaults command? I've narrowed it down to com.apple.systemuiserver. It looks like this: { ...
0
votes
1answer
617 views

How to prevent a .command file from showing window when it runs on OSX Lion?

If you have a .command file on your desktop containing say a Terminal command that it runs when you double click it, is there anyway to either (1) prevent the window that pops open when you run it, or ...
0
votes
1answer
775 views

How to run bash_profile function from desktop alias .command file on OSX Lion?

Ok, so I have this great little function in my bash_profile which works great when I call it from Terminal (it opens a new firefox window instead of new tab): function firefoxNewWindow() { ...
1
vote
2answers
610 views

Why does OS X Lion's terminal treat the PS1 prompt codes differently than Snow Leopard?

I get different behaviors in terminal with the same prompt definition in Snow Leopard and Lion. On my Snow Leopard system, I define my terminal prompt in .profile as follows: export ...
1
vote
1answer
157 views

Why does my terminal have funny characters for the date field? Looks like Russian?

Strangely my terminal has funny characters in the date area that look like Russian. Does anyone know why it displays these characters? (I'm running Mac OS X Lion)
1
vote
1answer
895 views

Rename a printer for LP and LPSTAT

I have a printer named "Home" set up in Mac OS X Lion: However, when I use lpstat -a on the command line (to get the printer name to use with the lp command) I still get a non-user-friendly name: ...
2
votes
1answer
1k views

OS X Terminal Ignoring SOCKS Proxy Setup

Previously I've used an SSH tunnel: ssh -D 1234 user@remoteHost As a system wide proxy in OS X by going to System Preferences -> Network -> Advanced -> Proxies -> Tick SOCKS Proxy and enter ...
3
votes
1answer
3k views

All commands are not working on Mac OS X Lion

I am faced with a problem, that I can't run even a single command on my Mac OS X Lion terminal, even "ls" command, when i print $PATH variable, found My-Mac:/ Mac$ echo $PATH /usr/local/git/bin ...
2
votes
4answers
2k views

Where does the name in the shell prompt come from?

When I open the terminal on my Mac, this is what it shows: australia:~ rod$ I don't live in Australia, don't have anything to do with Australia, nor have ever setup terminal as Australia. Where ...
0
votes
2answers
2k views

Open a terminal in Finder's current path in OS X Lion

In OS X Leopard, when using Finder, somebody released some sort of script which was added to the Finder toolbar/panel as an icon, so if you clicked on it, a terminal window would appear directly at ...
2
votes
1answer
442 views

OS X Terminal using default ANSI colours for every theme

For some reason, every theme I palette I've had installed for the OS X Terminal.app has reverted to using the default ANSI colours. The themes have been working fine up until this point and I can't ...
1
vote
0answers
494 views

How can I store a SSH key on my “terminal session” on Mac OS X Lion? [duplicate]

Possible Duplicate: How do I set up SSH so I don't have to type my password? I'm using git commands trough SSH over the terminal, but unfortunately each time I try to connect to the ...
1
vote
1answer
352 views

sudo sysctl -w kern.tfp.policy=1 fails?

I tried to setup the kern.tfp.policy to one but it does not let me do it. sudo sysctl -w kern.tfp.policy=1 kern.tfp.policy: 2 sysctl: kern.tfp.policy: Invalid argument How can I set ...
1
vote
1answer
5k views

How to Create a Permanent Alias in Mac OS X Lion Terminal?

I've googled the heck out of this. The typical methods of adding the alias to ~/.bashrc or ~/.bash_profile just aren't working for me. Help please? Thanks! Here's my current ~/.bash_profile if [ ...
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
4answers
4k views

How do I automatically close Terminal.app on exit in OS X Lion?

I've recently acquired a new Mac with OS X Lion, and I'm tuning it for my needs. I was trying to configure autoclose on Terminal using its preferences (as I've done with Tiger and Snow Leopard) but ...
1
vote
1answer
640 views

What do the number codes mean in active profiles in terminal on macbook pro?

Is there somewhere that says what the numbers mean? Specifically I want to know what the -1 is by AC Power, it used to be a 2. Suprise:~ Marty$ sudo pmset -g Password: Active Profiles: Battery ...
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 ...
5
votes
3answers
5k views

I can't clear the terminal in Mac OS X Lion - “terminals database is inaccessible”

UPDATE 3 - Better Solution I kept Google'ing this until I came to a different solution. I ended up downloading the terminfo directory from somewhere (I forgot where so I just posted the zip on my ...
0
votes
1answer
474 views

Shell starts in incorrect directory in OS X Lion Terminal

In OS X Lion, when I launch a new tab in the Terminal with Cmd+T, the shell starts in the / directory. $ pwd /
5
votes
3answers
9k views

OSX Lion terminal lost all colors

I recently upgraded to Lion only to find that Terminal.app (and iTerm2, which I actually use instead) have totally lost all colors. This means no syntax highlighting in Vim, no colored directory names ...
6
votes
2answers
3k views

Mac OS Lion - Always show menubar with fullscreen apps?

Does anyone know if it is possible to keep the menubar in Mac OS Lion visible for fullscreen apps instead of hidden until hovered over? I imagine there's some Terminal command I can enter to adjust ...
2
votes
5answers
3k views

Terminal in OS X Lion: can't write åäö on remote machine

Can't type åäö on the command line when ssh'ing to a Debian machine. It works locally though. Changing 'Declare terminal as' to 'xterm-color' doesn't seem to help, either.
9
votes
6answers
15k views

How to open a clean terminal in Mac OS X Lion?

Whenever I open a terminal, the last used commands appear. I'd like to get a clean terminal when I open it, but I haven't found how to do it. For example if while using the terminal I do: defaults ...
49
votes
5answers
87k views

Where to find the .bashrc file on Mac OS X Snow Leopard and Lion?

I want to install rvm on my Snow Leopard machine. It says I need to add a line to my .bashrc file (I'm using bash) but where is my .bashrc file?