0
votes
1answer
24 views

Vim starts with beginning of a “change” command

I'm having an issue with vim startup. Whenever I run vim somefile, it starts as though I pressed c just after startup. So, if I then try to immediately jump to the end of the file with G, it instead ...
0
votes
1answer
33 views

Cancelling shutdown -h command on Mac

I usually use the command sudo shutdown -h +60 from the Terminal on my Mac. Although I'd like sometime to cancel the scheduled shutdown or postpone it. Is there a command to do so? If yes, how?
0
votes
2answers
56 views

Redirect a cat command when using wildcards as input

I have the following command that takes a certain part of a file in the current directory, writes it to a temporary file, gets a part of another file one directory up, writes it to a temporary file ...
0
votes
3answers
110 views

What causes commands to print on first line in Terminal.app on Mac OS X 10.8?

Every time I execute a command in Terminal.app, the command prints in the beginning of the first output line like this: > ls lsfile1 file2 file3 This only happens in Terminal.app, iTerm.app for ...
2
votes
0answers
92 views

Binding .inputrc on Mac?

On Linux I had this line on my .inputrc: "\C-/": undo which doesn't work on Mac. Is there a way to make it work? On another note, is there a way to bind command keys on inputrc?
2
votes
2answers
2k views

OSX: Possible to use Total Terminal with iTerm2?

As I understand it, Total Terminal is a thin layer on top of Terminal.app that adds some Yakuake-like features. My question is: Is it possible to use Total Terminal with iTerm2 as the "backend" ...
19
votes
2answers
4k views

Replace OS X's shell commands with the linux versions?

The commands available by default in the Terminal in OS X, don't seem to behave like their linux versions. How can I replace all of them with the actual GNU linux commands? For example sed -i ...
8
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 ...
0
votes
2answers
206 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 ...
1
vote
1answer
219 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 ...
4
votes
1answer
271 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 ...
15
votes
1answer
6k 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?
0
votes
3answers
446 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 ...
1
vote
1answer
299 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 ...
6
votes
4answers
8k views

How to send F9-F12 to curses program running inside Terminal.app?

F9-F12 are used by Mac OS X, and I don't want to get rid of them, I just want to be able to send F9-F12 occasionally to programs inside terminal (mostly F9/F10). Some programs like mc support ...
2
votes
1answer
4k views

Passing Command Line Args to `open` on Mac

I am using the open command from the Terminal to open an app bundle and would like to pass a command line argument through to the underlying executable. Is this possible with the open command? The ...
2
votes
2answers
3k views

Setting permissions on Mac OS X

I am developing a website hosted locally on a Mac and I am having trouble with directory permissions. I have exhausted my normal options for solving the problem and the remaining solution I can think ...
3
votes
3answers
2k views

Command line history & tab-completion for sftp in OS X Terminal.app

I use Terminal.app constantly. When connecting via ssh to remote *nix systems, I can continue to use tab to complete command names and arrow-up/down to navigate the command history. However, with sftp ...
0
votes
3answers
2k views

“-bash: ls: command not found” error in Terminal on Mac. How to correct it?

I edited the .profile file to add a new PATH. I believe I set it wrong such that most commands become unavailable. Since I can't use ls or vi commands to edit .profile again, any idea how I can ...
1
vote
2answers
768 views

Is there a way to hide Terminal.app's credentials (prompt text)?

I lose too many columns in my terminal because of the credentials ( Victor-Rodriguess-MacBook-Pro:~ victorrodrigues$ ). Could I shrink this? The only information I see as really needed sometimes for ...