From: Ben B. <in...@em...> - 2007-06-20 14:52:18
|
On Wed, Jun 20, 2007 at 09:32:12AM -0400, Jim Hodapp wrote: > 1. When I open up iTerm, it doesn't apply my ~/.bashrc file which > includes custom settings, prompt colors, etc. I know that bash is set > as my default shell and runs when starting iTerm, but doesn't apply > my .bashrc file until after I type "bash" once on the command line in > iTerm. OS X launches a "login" shell whenever you fire up a new Terminal or iTerm session. Take a look at the man page for bash and search for the "INVOCATION" section to see which files are sourced in a "login" v. "interactive" shell. Short answer: Symlink .bashrc to .bash_profile and you're pretty much covered no matter how you launch a shell. > 2. When I use vim locally or via ssh to a remote Mac OS X box or Linux > box the arrow keys aren't mapped and I'm forced to using 'h', 'j', 'k', > 'l' for navigating the cursor around. This does not happen on another > Mac of mine with iTerm which has me confused. I don't use arrow keys in vim, so I'm not sure what settings are necessary, but experiment with the iTerm keyboard profiles. I've switched from "xterm (OS X)" to normal "xterm", which seems to result in most console apps behaving better. -Ben -- Ben Beuchler There is no spoon. in...@em... -- The Matrix |