Commit Graph

180 Commits

Author SHA1 Message Date
2b732995b4
.zshrc: Delete unnecessary semicolon 2016-08-21 09:08:23 +03:00
dc5b544bc0
.zshrc: Remove Heroku toolbelt 2016-08-20 22:47:06 +03:00
758037091f
.zshrc: Initialize jenv
Turns out you actually have to initialize this and add the ROOT.
2016-08-20 22:15:05 +03:00
54b1eaaa88
.zshrc: Use simpler pyenv initialization
Instead of using it from a local git checkout I'll just use it from
Homebrew.
2016-08-20 21:58:25 +03:00
b3d9b6b5b4
.zshrc: Use jenv from Homebrew instead
Too many things running checks and initializing at shell startup,
and the one from Homebrew just works with my existing .jenv.
2016-08-20 20:40:41 +03:00
d91f2ed127
.zshrc: Update GraphicsMagick helpers to produce better images
I noticed a blog post pointing out that resized images usually end
up looking a bit dim or blurry. He suggested some different unsharp
settings, and they do produce an image with more detail.

See: https://even.li/imagemagick-sharp-web-sized-photographs/
2016-08-14 23:04:01 +03:00
3d63c2aa29
.zshrc: Remove vimdiff alias on Mac OS X
This was only necessary when I was using vim from pkgsrc. The one
from Homebrew provides a `vimdiff` symlink.
2016-06-05 12:14:37 +03:00
575e0a2bc5
.zshrc: Opt out of Homebrew analytics
Tracking my usage in the command line?! Seriously!

See: https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Analytics.md
2016-04-25 22:38:31 +03:00
9df4458bd4
.zshrc: Add function for optimizing JPEGs
Signed-off-by: Alan Orth <alan.orth@gmail.com>
2016-03-17 23:01:40 +02:00
62d7ca2201
.zshrc: Set smartresize() to generate progressive images
This sometimes results in a bit of overhead in image size but allows
images to be loaded in a much more user-friendly way.

Signed-off-by: Alan Orth <alan.orth@gmail.com>
2016-03-17 23:00:13 +02:00
3c135c71b7
.zshrc: Add genpass() to generate passwords
Signed-off-by: Alan Orth <alan.orth@gmail.com>
2016-03-07 12:39:25 +02:00
222f291e28
.zshrc: Add jenv
This is getting ridiculous, but sure.

Signed-off-by: Alan Orth <alan.orth@gmail.com>
2016-03-02 17:15:01 +02:00
1e37d1fc12 .zshrc: Use homebrew instead of pkgsrc
I prefer pkgsrc, but the packages are only updated once per quarter,
so if something is broken you won't get a fixed version for a few
months, or if you want some new upstream release you have to wait.

Installed homebrew manually in /opt/brew because of Mac OS X's system
integrity protection since 10.11.

Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-11-24 00:41:28 +03:00
f0fb944b62
.zshrc: Add /sbin and /usr/sbin to PATH on Mac OS X
These are needed by password store (pass) when editing passwords,
and they are not part of the user's PATH by default.

Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-11-21 19:36:15 +03:00
031cd83ff5
.vimrc: Add incremental search
This begins searching before pressing Enter.

Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-11-02 08:16:55 +03:00
00c06d8744
Use nvm instead of local npm
Easier to use different nodejs versions and have "global" packages
that don't need root to install.

See: https://github.com/creationix/nvm

Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-10-26 00:07:35 +03:00
457e075154
.zshrc: Use GraphicsMagick for smartresize function
Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-09-05 20:52:16 +03:00
8d3585f81c
README.me: Adjust headings
Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-09-05 20:49:59 +03:00
101b0afb0c
.zshrc: Add -strip to gmsmartresize function
Stripping metadata from the image saves 20–50KB, and the only reas-
on I kept it in the first place was for the color profile (which is
unnecessary on the web anyways).

Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-09-05 18:12:11 +03:00
db19761f45
.zshrc: Adjust gmsmartresize function to remove colorspace specification
gm's manpage says RGB is the default so there's no need to specify
this. Furthermore, the W3C says that sRGB is the default color space
for the web anyways, so it's pointless to embed a color profile.

Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-09-05 18:02:50 +03:00
b4a54dd0e4
.zshrc: Add GraphicsMagick version of smartresize
GraphicsMagick is faster, often produces better results, has more
sane command line options, etc...

Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-09-02 23:51:31 +03:00
730319bcd1
.zshrc: Add smartresize function
For quick and easy image resizing. From Smashing Magazine's great
article[0].

[0] http://www.smashingmagazine.com/2015/06/efficient-image-resizing-with-imagemagick/

Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-08-30 17:58:36 +03:00
11adf0ff8d
.zshrc: Use GNU grep on Mac OS X
Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-08-14 08:46:45 +03:00
94e7b2d1bd
.zshrc: Add an alias for vimdiff
pkgsrc doesn't provide a `vimdiff` wrapper, and it's just `vim -d`
anyways, so we can just alias it and then use the vim from pkgsrc.

Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-08-02 09:38:06 +03:00
89506851a4
.zshrc: Use gsort from GNU coreutils as sort
Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-08-01 15:35:24 +03:00
ad7e3ac01f Revert ".zshrc: Don't run dircolors on Darwin right now"
This reverts commit 0096deea56.

coreutils in pkgsrc 2015Q2 has been fixed.
2015-07-30 23:35:45 +03:00
48ad1ef39b Revert ".zshrc: Hardcode LS_COLORS for now on Darwin"
This reverts commit 36a7c17c71.

coreutils in pkgsrc 2015Q2 has been fixed.
2015-07-30 23:35:19 +03:00
0096deea56
.zshrc: Don't run dircolors on Darwin right now
The coreutils in pkgsrc 2015Q2 is broken right now so we don't have
dircolors on Darwin.

Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-07-28 21:28:26 +03:00
36a7c17c71
.zshrc: Hardcode LS_COLORS for now on Darwin
The coreutils in pkgsrc 2015Q2 is broken for now, so we can't use
dircolors. Instead, manually hardcode the LS_COLORS, which was gen-
erated from dircolors on a system with coreutils using:

    $ dircolors -b ~/.dircolors.ansi-dark

... and then export CLICOLOR=1.

Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-07-28 21:14:23 +03:00
f502639002
.zshrc: Switch to pkgsrc 2015Q2 on Darwin
Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-07-28 21:13:24 +03:00
d5afbad716
.zshrc: Check for existence of bin directories we're adding
Actually check for the directories that we are adding to the PATH.

Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-07-26 14:07:40 +03:00
a5199335f1
.zshrc: Add BasicTex 2015 paths
Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-07-26 13:23:56 +03:00
cdd9e1aa0f
.zshrc: Add path for Heroku toolbelt
Heroku's official packages install here on all *nix platforms.

Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-06-23 18:05:33 +03:00
eab699691e
.zshrc: Add BasicTeX directory to PATH
Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-06-11 22:56:01 +03:00
a4556ba78a
.zshrc: Don't exit shell on ^D
This is super annoying when you're in a pager like more or less and
you are pressing ^D to go down. When you reach the end of the input
then you send ^D to the shell and it exits!

Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-06-01 21:18:19 +03:00
362500e8a5
.zshrc: Fix regex for Linux test
On GNU/Linux $OSTYPE returns "linux-gnu".

Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-05-26 19:26:12 +03:00
74ad228591
.zshrc: Add paths for binary Golang distribution
Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-05-21 22:49:07 +03:00
9ab16d43ad
.zshrc: Don't quote PATHs
It screws up the interpolation of ~.

Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-05-16 14:15:27 +03:00
e176bbd5e6
.zshrc: Fix path to NPM packages
Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-05-14 17:57:24 +03:00
5d728f6620
Add .npmrc and a note in README.md
Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-05-13 18:50:28 +03:00
705e10f0c0
.zshrc: Change npm environment logic
Use a local npm package prefix so I can `npm install -g` without
having to give hipster npm access to /usr/lib or whatever.

Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-05-13 18:47:51 +03:00
2053967dfd
.zshrc: Use gdircolors for dircolors on Mac OS X
Then the dircoloring can be platform agnostic.

Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-05-10 12:32:50 +03:00
3c38f064d9
README.md: Add note about license
Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-05-09 18:33:51 +03:00
6fd1ff3598
Add copy of GPLv3 license
Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-05-09 18:33:14 +03:00
891ac5bfcf
README.md: Adjust headings
Use second- and third-level headings, respectively. When rendered
in GitHub, `#` is an `<h1>`, which should actually be the most pro-
minent heading on the page; in this case GitHub's own headings sho-
uld take precedence, so ours should start at `<h2>` essentially.

Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-05-09 18:29:09 +03:00
ffe79e3a0b
.zshrc: Fix ansible hosts environment variable
Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-05-09 18:22:32 +03:00
45f14fee92
.zshrc: less is the same on Mac OS X and Linux
Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-05-09 18:21:45 +03:00
0df8db6540
README.md: Add notes for .zshrc
Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-05-05 11:55:15 +03:00
e871929aa0 Merge pull request #1 from alanorth/cross-platform-cleanups
Cross platform cleanups
2015-05-05 11:44:36 +03:00
aaf0f15669
.zshrc: Only export variables at the end
Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-05-05 11:40:42 +03:00