I just installed iTerm and I'm quite enthusiast. It's not easy to configure, but it has everything needed.
Cool prompt, with iTerm dynamic title
I don't like the default prompt provided in OSX. So I want the more familiar (for ubuntuers) "user@hostname:/current/work/dir$" path. The following one also keeps the terminal title updated with the current work directory. Which is very useful if you use tabs. Put those lines in your ~/.profile file:
PS1='\[\033[32m\]\u@\h\[\033[00m\]:\[\033[34m\]\w\[\033[00m\]\$ '
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'
;;
*)
;;
esac
Done. This should work also for other Unixes.
Move to next/previous word in iTerm with ALT+Left/Right
I wanted the ALT+Left and ALT+Right combination to move the cursor to next and previous word. So these are the steps:
- Menu>Bookmarks>Manage Profiles
- Select Keybard>Global
- add opt-num-cursor left to send escape sequence ^[b (on the text field you have to type just "b", as the ^[ is added automatically)
- add opt-num-cursor right to send escape sequence ^[f ("f" for the textfield)
Replacing Dock Icons with yours
I don't like the default icon for iTerm. I saw a better one on iTerm website:
- Open the icon you want with Preview, then press CMD+C to copy it into the clipboard. A png file is fine.
- Find the application in Finder, for instance, from the Dock right-click on the iTerm icon and select "Show in Finder"
- Right click on the application and select "Get Info". Or just press CMD+I. A file information window should pop up then.
- On the top of the Info window, there's a little icon next to the application name and file size. Click on that icon, and press CMD+V, to paste the new icon as replacement.
Search
Calendar
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Jan | Mar » | |||||
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | |
Archives
Categories
Tag Cloud
Android API Bash Bios CSS Development Eclipse Encription Error Handling Font Git Google GWT Hardware How-To HTML Installation iPod Java JavaScript Karmic Linux Lucks MacBook Open Source Opinion OSX Pitfalls Pkg Practices Python Resume Security Software Suspend TDD Testing Tools Top Down Tricks Ubuntu Uninstall Wakup On Lan Web Workaround
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.
Blog License
Blogs I like
Books on the desk
Friends' Blogs
- Antonio Terreno & Valter Bernardini
- Bruno Bossola
- Daniele Galluccio
- Domenico Ventura
- Ed Schepis
- Fabrizio Gianneschi
- Luca Grulla
- Luigi Zanderighi
- Marcello Teodori
- Mida Boghetich
- Muralidharan Chandrasekaran
- Piero Ricca
- Renzo Borgatti
- Simone Bordet
- Simone Bruno
- Uberto Barbini
- Valvolog
- Webtide blogs (Greg Wilkins & Jan Bartel)
Links




















No Responses to “Some tips for iTerm”
Please Wait
Leave a Reply