Posts tagged zsh
Quick post on something I noticed when I upgraded to Mountain Lion this evening. When I started up my shell I got this error:
git_compare_version:4: command not found: git
I thought maybe I had to reinstall git on my MacBook Air, but after a quick Google I found this ticket on github: https://github.com/robbyrussell/oh-my-zsh/issues/1070
All you need to do is launch Xcode, go to Preferences > Downloads and in the Components menu just install command line tools.
I can confirm that this workaround fixed it for me.
I recently purchased a MacBook Air in September for my birthday. One of the first things I noticed was that the operating system doesn’t show the ~/Library directory. It keeps annoying me, so after some researching I found the Terminal command to show hidden files. I put them into my aliases in my .zshrc which can be found in my fork of the Oh My Zsh! GitHub repository, but also posted them here for convenience.
These commands will either show/hide the hidden files and then relaunch Finder.app to show the changes.
alias show_hidden='defaults write com.apple.Finder AppleShowAllFiles YES && killall Finder && open /System/Library/CoreServices/Finder.app' alias hide_hidden='defaults write com.apple.Finder AppleShowAllFiles NO && killall Finder && open /System/Library/CoreServices/Finder.app'
A few months ago I found the oh-my-zsh repository on GitHub and decided to play around with/use it and made a quick lightening talk about it for the people at work. I also forked the project and made my own theme eponymously named “rachel.”
This morning I got a note saying it was accepted into the main branch and is publicly available when you pull it down. If you’re using oh-my-zsh or interested in trying it out, check out my theme!
Last year, you may remember me fussing with a new installation of Snow Leopard and trying to get Postgres to behave properly.
At my most current job I’m still stuck on Leopard and just began a project maintaining our installation of Redmine that requires PostgreSQL. We’re behind an iron-clad proxy server (which is a pain in itself) due to the nature of the company, but I was working from home that day and had the luxury of just disconnecting from the VPN and was able to use the one-click installer provided by EnterpriseDB which was a relatively painless procedure. I don’t remember it being so pleasant last year. I’m not sure if the one-click installer is new, I probably installed everything by source last time. In the hopes that within the next few months (I can only dream) I’ll get one of the new snazzy MacBook Pros they’re rolling out to the Online team, I can do it “properly” then and can afford to be lazy now.
I was quite impressed at the tools available in the installer that placed themselves in my /Applications directory by default such as pgAdmin III and a cute SQL Shell that automatically launches the psql command line tool. My only gripe with the one-click installer was that by default it installed postgres to the /Library/PostgreSQL/8.4 directory instead of /usr/local so previous postgres configurations in my extensive dotfiles were a little mucked up until I realized what I had done. Nothing a little bit of symlinking couldn’t fix, but it did drive me insane wondering why psql wasn’t in my $PATH.