GeneralUtilties

From cgwiki
Revision as of 16:19, 13 March 2014 by MattEstela (talk | contribs) (Created page with "Having used linux for 5 years non stop, being dropped onto a windows box felt ''weird''. The major thing missing was a shell, here's the steps I took to make things more palat...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Having used linux for 5 years non stop, being dropped onto a windows box felt weird. The major thing missing was a shell, here's the steps I took to make things more palatable.

Getting a shell under windows

Git bash is quick and simple, not as bloaty as cygwin, but comes with all the major things you need (less, vim, cat curl git clone etc...)

http://msysgit.github.io/

Python and git bash

Just install regular python, and append its path to your .bashrc:

PATH=$PATH:/c/python27
export PATH

Make djv work with git bash

Again, just add the path, make an alias (I use rv cos old habits die hard)

PATH=$PATH:/c/python27:"/C/Program Files/djv-0.8.3-pre2_winxp-x64/bin"
export PATH
alias rv=djv_view.exe

There's still problems with calling it, you can't just do 'rv .' (it doesn't launch anything), and definitely not 'rv *' (it launches a separate djv for each image!). I suspect the * is interpreted by bash, so it just launches everything, while using hashes goes straight to djv. This works:

rv myimages.####.exr

Get a seqls/lseq/lss equivalent with pyseq

Pyseq is a python module that handles sequence listing, comes with a callable 'lss' command. Download it with git, install it, copy lss to your ~/bin folder

git clone git://github.com/rsgalloway/pyseq.git pyseq
cd pyseq/
ls
python setup.py install
mkdir ~/bin
cp lss ~/bin

You get this after all that hard work:

$ lss
  1 .DS_Store
  1 Thumbs.db
  1 _tmpuntitled.png
150 shot150_v03.%04d.jpg 1-150
  2 shot150_v%02d 6-7
  1 tmp

Replace cmd.exe with something good, like ConEmu

Bash is bash, and it runs within cmd.exe by default, the windows DOS shell. Use it for more than 30 seconds, you'll find cmd.exe is horrible. Can't resize it easily, copy paste is weird, ugh. ConEmu is a free cmd.exe replacement, much nicer. Tabs, resizable, better copy/paste etc.

https://code.google.com/p/conemu-maximus5/

Instructions for getting a 'conemu git bash here' context menu on folders can be found here:

http://superuser.com/questions/454380/git-bash-here-in-conemu

The copy/paste isn't quite as linux xtermy as I'd like, but close enough (you can force middle-button to always paste in the options)