You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Select what type of workflow you would like. I feel a service is a good choice for this so go ahead and;
Select -> Service
At the top of the window there should be 2 combo-boxes.
Select -> no input
Select -> Finder.app
Drag -> Run shell script; from the left panel to the right and enter the following:
is_shown=$(defaults read com.apple.finder AppleShowAllFiles)if [ $is_shown!="TRUE" ]
then
defaults write com.apple.finder AppleShowAllFiles TRUE
else
defaults write com.apple.finder AppleShowAllFiles NO
fi
Below that Drag -> Ask for confirmation and enter a message to the effect of "Do you want to relaunch finder? This will cancel any file transfers etc."
Under that, Drag -> Run shell script and enter
killall Finder
Save it, naming it whatever you want it to appear as under the services submenu of the Finder menu.
With Finder in the foreground, click Finder in the top left -> down to Services and click your newly created Service.
Setting up terminal
Bottom line; put config stuff in .bashrc/.zshrc for interactive shells (shells you can type at).
Why / Where Do you create Bash and zsh stuff, what order are .bashrc/.zshrc vs. .bash_profile/.zshenv called
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.# Look in ~/.oh-my-zsh/themes/# Optionally, if you set this to "random", it'll load a random theme each# time that oh-my-zsh is loaded.
ZSH_THEME="af-magic"# Example aliases# alias zshconfig="subl ~/.zshrc"# alias ohmyzsh="subl ~/.oh-my-zsh"# Pipe my public key to my clipboard. Fuck you, pay me.alias pubkey="more ~/.ssh/id_rsa.pub | pbcopy | echo '=> Public key copied to pasteboard.'"# Set to this to use case-sensitive completion# CASE_SENSITIVE="true"# Comment this out to disable weekly auto-update checks# DISABLE_AUTO_UPDATE="true"# Uncomment following line if you want to disable colors in ls# DISABLE_LS_COLORS="true"# Uncomment following line if you want to disable autosetting terminal title.# DISABLE_AUTO_TITLE="true"# Uncomment following line if you want red dots to be displayed while waiting for completion# COMPLETION_WAITING_DOTS="true"# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(git)
source$ZSH/oh-my-zsh.sh
# Customize to your needs...export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/usr/X11/bin
[[ -s"$HOME/.pythonbrew/etc/bashrc" ]] &&source"$HOME/.pythonbrew/etc/bashrc"# brew install pyqt recommended thisexport PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH
Other Notes
Python
Installed pythonbrew, then installed and switched to 2.7.2 (permanent) confirmed with $ which python
Making backups of this vm called OSX-VM-pythonbase
In main /Documents/Virtual Machines/OSX-VM I will try to use $ pythonbrew venv
~ » brew install pyqt mam@Michaels-Mac
==> Installing pyqt dependency: sip
==> Downloading http://www.riverbankcomputing.co.uk/hg/sip/archive/4.13.3.tar.gz
######################################################################## 100.0%
==> Patching
patching file build.py
Hunk #1 succeeded at 185 (offset 6 lines).
Hunk #2 succeeded at 198 (offset 6 lines).
patching file siputils.py
Hunk #1 succeeded at 1485 (offset 51 lines).
==> python build.py prepare
==> python configure.py --destdir=/usr/local/Cellar/sip/4.13.3/lib/python2.7/site-packages --bindir=/
==> make install
==> Caveats
For non-homebrew Python, you need to amend your PYTHONPATH like so:
export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH
==> Summary
/usr/local/Cellar/sip/4.13.3: 8 files, 576K, built in 5 seconds
==> Installing pyqt dependency: qt
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/qt-4.8.3.mountainlion.bottle.tar
######################################################################## 100.0%
==> Pouring qt-4.8.3.mountainlion.bottle.tar.gz
==> Caveats
We agreed to the Qt opensource license for you.
If this is unacceptable you should uninstall.
==> Summary
/usr/local/Cellar/qt/4.8.3: 2779 files, 194M
==> Installing pyqt
==> Downloading http://downloads.sf.net/project/pyqt/PyQt4/PyQt-4.9.4/PyQt-mac-gpl-4.9.4.tar.gz
######################################################################## 100.0%
==> python ./configure.py --confirm-license --bindir=/usr/local/Cellar/pyqt/4.9.4/bin --destdir=/usr/
==> make
==> make install
==> Caveats
For non-homebrew Python, you need to amend your PYTHONPATH like so:
export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH
==> Summary
/usr/local/Cellar/pyqt/4.9.4: 551 files, 20M, built in 8.3 minutes
-------------------------------------------------------------------
```bash~ » brew install zmq mam@Michaels-Mac==> Downloading http://download.zeromq.org/zeromq-2.2.0.tar.gzAlready downloaded: /Library/Caches/Homebrew/zeromq-2.2.0.tar.gz==> ./configure --prefix=/usr/local/Cellar/zeromq/2.2.0==> make==> make install==> CaveatsTo install the zmq gem on 10.6 with the system Ruby on a 64-bit machine,you may need to do: ARCHFLAGS="-arch x86_64" gem install zmq -- --with-zmq-dir=/usr/localIf you want to build the Java bindings from https://github.com/zeromq/jzmqyou will need the Java Developer Package from http://connect.apple.com/==> Summary/usr/local/Cellar/zeromq/2.2.0: 41 files, 1.6M, built in 24 seconds