TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Moving to a Macbook Pro from Ubuntu. Help

9 pointsby tapan_panditaover 12 years ago
I am switching jobs and the new company i'll work at are an apple shop. Which means they want me to work on the same platform as well. I have almost exclusively used ubuntu for the last 3 years. The few times that I have used a macbook, the gestures and stuff have been very confusing. I code in python/django in vim. Here is what I'll need to customise, please suggest apps, tips, tricks, etc.:<p>1. I spend 99% of my time on a laptop between chrome and my terminal. Chrome should be the same I guess. Having used the mac terminal before, I have not been impressed. It seems really slow. I use oh-my-zsh. Is iterm2 any good? Can I fix the performance issues of the default terminal? Am I just hallucinating that the mac terminal is slower?<p>2. I have really gotten used to just apt-get installing stuff. Missing headers? No problem, just apt-get install xyz, problem solved. I have heard homebrew is good for OS X. Is it all I'll need?<p>3. I typically use a lot of tabs in my terminal and have some muscle memory built in for switching between them, moving them around, etc. Can i customise these shortcuts? I also have a workflow build around different workspaces in ubuntu. How can I achieve this in OS X?<p>4. I really like using vim in the terminal (allows me to quickly move in and out of the terminal). However, everywhere online, people recommend using MacVim coz apparently it doesn't work well enough in the terminal(?). If so, can this be fixed?<p>Any other tips or tricks I should know about? I really don't want to lose too much productivity over the shift.

7 comments

olefooover 12 years ago
1. Get iterm2 <a href="http://www.iterm2.com/#/section/home" rel="nofollow">http://www.iterm2.com/#/section/home</a><p>2. Installing stuff from homebrew is great until you break homebrew. Then you will be in a deep and unproductive pit for a while. Read the docs, move slowly and don't run homebrew as root. I've found that for some things ( postgres, redis and nginx ) is that I prefer to build them by hand and stick them in /opt your mileage will vary.<p>3. Lion at least, has workspaces, and iterm2 and terminal do support tabbed terminals. You can remap keys use the Keyboard panel in settings.<p>4. Try the different flavors of Vim, do what works for you. I'm an emacs user so I can't comment on what the differences are.<p>5. VirtualBox and Vagrant <a href="http://www.vagrantup.com/" rel="nofollow">http://www.vagrantup.com/</a> Don't bother trying to get things running on osx that belong on the server. Run a VM that matches your server environment. Bonus: you can use Salt/Puppet/Chef to manage your VM's in the same exact way you manage your servers.<p>6. `pip` and `virtualenv` work on osx, don't do python development without them.
arxanasover 12 years ago
1. I always used tmux in a big xterm window: `xterm -fa "Andale Mono" -fs 18 -fullscreen -fg white -bg black -e tmux` X doesn't come with Mac OS anymore so you'd have to download it yourself — <a href="http://xquartz.macosforge.org/" rel="nofollow">http://xquartz.macosforge.org/</a> Mac OS ships with screen, I think.<p>2. I prefer MacPorts, but I don't think it matters.<p>3. tmux does that.<p>4. I find a lack of copy/paste between vim and the host OS. That's probably because of xterm.<p>• Remember that Mac OS is built on BSD, not Linux. (Apparently it's also fully POSIX-compliant.)<p>• Use cmd-space to search for files and programs quickly. Try not to index any SDK material, though.<p>• Use the touchpad gestures to switch between virtual desktops. This is one of the best features of Mac OS. You can run multiple full-screen windows and still navigate between them. In 10.7:<p>• Four-finger swipe right or left: change windows. Also ctrl-left or ctrl-right.<p>• Four-finger swipe up: change between desktops. Also ctrl-up.<p>• cmd-tab to switch between applications, cmd-` to switch between windows in that application.<p>• cmd-shift-3 takes a screenshot and saves it to your desktop. cmd-shift-4 lets you select a portion of your screen to screenshot. Add a ctrl in there to save to your clipboard instead of the desktop.<p>• Don't use ctrl-alt-cmd-8.<p>• alt-delete to delete the last word. Also alt-fn-delete to delete the next word.<p>• cmd-right and cmd-left move you around in the line. Hold shift to select everything to the right or left. I was surprised by this when switching from Windows.<p>• Typing alt+&#60;letter&#62; lets you produce a lot of special characters easily. You can also add a shift in there for another probably-related character. Some combinations of note:<p>· alt-e to produce an accent on the next letter. · alt-- to produce an n-dash or alt-shift-- to produce an m-dash.<p>· alt-shift-3 and alt-shift-4 to produce those half-&#38;raquo; things: ‹›.<p>· alt-| and alt-shift-| to produce those &#38;raquo; things: « ».<p>· alt-= to produce ≠.<p>· alt-l to produce that negation sign thing: ¬_¬.<p>· alt-v to produce √ which you can pretend is a check-mark.<p>· alt-m to produce mu, so you can type µTorrent pretentiously.<p>· alt-[ to produce typographical quotation marks, alt-shift-[ to close it. alt-] and alt-shift-] produce single quotation marks.<p>• Go to System Preferences › Accessibility and turn on "access for assistive devices". I don't know what that is but a lot of things need it.<p>• Take a look at /Applications/Utilities. In particular, Activity Monitor is the task manager, Disk Utility lets you format things and so on, and Network Utility is a bunch of command-line utilities in a nice-looking package.<p>• Install support for NTFS. "Mac OS X does not support writing to Microsoft Windows formatted NTFS volumes out-of-the box." Sure, you're working in an Apple store but it's probably going to come up eventually and you'll wonder why you can't write to this seemingly fine external drive. <a href="http://macinformers.com/how-to-NTFS-3G-support-for-macosx-lion/" rel="nofollow">http://macinformers.com/how-to-NTFS-3G-support-for-macosx-li...</a>
jburwellover 12 years ago
1. iTerm2 is great. I haven't used the Mac terminal since it became available. Thought I will say that I have never experienced any performance problems with either. iTerm 2 just has a richer feature set.<p>2. Say hello to the homebrew (<a href="http://mxcl.github.com/homebrew/" rel="nofollow">http://mxcl.github.com/homebrew/</a>) package manager. While apt is more robust, I don't think you will be let down by homebrew. I recommend following the "advanced" instructions for installing it into your home directory rather than mangling the /usr/local permissions.<p>3. The keyboard iTerm 2 shortcuts are highly customizable. Mac Terminal does not appear to be as configurable.<p>4. vim in the Mac terminal works wonderfully. MacVim adds clipboard integration, native keyboard shortcuts, and other Finder integration niceties. I use both interchangeable. Per my response to question 2, the latest versions of vim and MacVim are available through homebrew.<p>After a adjusting to Finder, I don't think you will find a productivity loss. The biggest issue I have found for folks coming over from Linux are the lack of real virtual desktops. Spaces is a joke by comparison.
dfcover 12 years ago
Homebrew.[1] Its the closest you will get to apt-get.<p>Iterm2.[2] Its the best choice for a terminal emulator<p>MooM.[3] Is the closest thing I can find to using a tiled WM on osx.<p>[1] <a href="http://mxcl.github.com/homebrew/" rel="nofollow">http://mxcl.github.com/homebrew/</a><p>[2] <a href="http://www.iterm2.com/" rel="nofollow">http://www.iterm2.com/</a><p>[3] <a href="http://manytricks.com/moom/" rel="nofollow">http://manytricks.com/moom/</a>
bdunbarover 12 years ago
&#62; Any other tips or tricks I should know about? I really don't want to lose too much productivity over the shift.<p>Think of OS X as 'unix with a really nice window manager' .. it might help.<p>I think it's mostly a matter of what you're used to. I mostly use OS X, when I shift _back_ to a linux host I really get slowed down, at first.<p>It's not nearly as bad as if they made you use a Windows machine - you'd really be slowed down for a while.
ishbitsover 12 years ago
Iterm2. I'm an emacs guy and install emacs from MacPorts - gives the GUI version I like. For the most part that allows me to switch seamlessly between Linux and the Mac.<p>I've tried Homebrew 2x now but have always gone back to MacPorts for one developer reason or another. If I wasn't developing on the Mac, Homebrew would probably be fine.
endianover 12 years ago
DTerm, SizeUp