I had to edit ~/.profile and put this code in to make folders color.
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
This shows LSCOLORS options.
I used this to make a custom cursor:
PS1='\[\033[01;32m\]\u@macair\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
Hope this helps.
For vim, use a theme like this theme
And add 2 folders, ~/.vim and ~/.vim/colors
Put the theme file in your ~/.vim/colors folder
Then make a file called ~/.vimrc with something like this:
syntax on 'this is needed to see syntax
set background=dark "makes it easier to read with black background
colorscheme ir_black "set theme in ./vim/colors folder
set ls=2 " allways show status line
set hlsearch " highlight searches
"set incsearch " do incremental searching
set ruler " show the cursor position all the time
set visualbell t_vb= " turn off error beep/flash
set ignorecase "ignore case while searching
set number 'put numbers on side
I've added comments so you can pick and choose what you want. Also, I ended up tweaking the theme. It made comments grey and they were too hard to read.
Terminal.app
declares itself a handler of the ssh
, telnet
and x-man-page
URL schemes.
It also registers the file extensions .term
(sessions), .terminal
(settings), .tool
and .command
(scripts), and itself as an editor/viewer for these.
Other than that, there is no default terminal in OS X. It's just an application that can handle URL schemes and file types.
iTerm is capable of handling all of these except the Terminal.app specific .term
/.terminal
.
For the file types, just open the Get Info dialog and associate all files of this kind with iTerm. For the URL schemes, you can download and install the preference pane Default Apps and change the association there. You can also use it as an alternative method of changing the file type associations.
All of these settings are user specific and stored in ~/Library/Preferences/com.apple.LaunchServices.plist
. You can of course edit it in a suitable editor yourself. It's pretty straightforward. Screenshot of Xcode 4 showing the result of changing x-man-page
in Default Apps preference pane:
Terminal.app also provides the following Services for other applications:
- New Terminal at Folder
- New Terminal Tab at Folder
- Open man page in Terminal
- Search man pages in Terminal
The association with Terminal.app is hard-coded. You need to create your own Services e.g. using Automator and/or AppleScript to replace these.
If Terminal is used via its AppleScript API, there is no way to just replace it with iTerm in all cases, as their APIs are quite different. This will often require substantial changes to the programs or scripts doing that.
Best Answer
There is already the functionality, as Phoenix said, so no use for "changing the backend" of TotalTerminal. In iTerm2, just add a new profile with setting Window/Style/top of screen, add a global hotkey for toggling iTerm2 on this specific profile, and you're done.
See: http://technosophos.com/content/configure-iterm2-act-visor