Commit Graph

154 Commits

Author SHA1 Message Date
783acb0169
.zshrc: Update jenv condition
This always spams "no jenv in PATH" if jenv can't be found, which
is really annoying.
2017-05-02 21:49:24 +03:00
e3b1138917 .vimrc: Cleanup
Remove duplicate incsearch and move color options together.
2017-03-19 20:13:20 +02:00
94db3bdd01 .vimrc: Set soft tab stop to shiftwidth
For more consistent behavior with tab, indent, and delete when pre-
ferring spaces over tabs.

See: http://vimcasts.org/episodes/tabs-and-spaces/
2017-03-19 20:13:20 +02:00
a78a074ad0 .vimrc: Add comments and long names to options 2017-03-19 20:13:20 +02:00
143304436a .vimrc: Remove paste setting
The `expandtab` help says that it doesn't work when `paste` is ena-
bled! No wonder my shift width and stuff wasn't working all these
years.
2017-03-19 20:13:20 +02:00
667c06b721
.tmux.conf: Remove default command
By default tmux always executes the shell as a login shell, which
is what most users probably want, as tools like rvm rely on that.
2017-02-16 12:03:25 +02:00
aec2a1b4c1
.zshrc: Update to TeX 2016 2017-01-20 11:51:00 +02:00
e597b7befe
.zshrc: Update example for using smartresize 2017-01-20 11:49:47 +02:00
729f05534d
.zshrc: A better password generator 2017-01-11 11:44:21 +02:00
1b51f21ca1
Revert ".zshrc: Use simpler pyenv initialization"
This reverts commit 54b1eaaa88.

When I go back to Linux I realize how annoying this is. Let's just
use the git checkout version on all systems.
2016-12-05 22:47:28 +02:00
55868c7122
.zshrc: Allow optional quality parameter to smartresize 2016-11-19 18:01:25 +02:00
9b63f48e31
Add gpg-agent plumbing for zsh 2016-11-19 17:59:36 +02:00
bf8ce9aadb
.zshrc: Simplify config on Darwin by using gnubin paths
Homebrew creates gnubin paths where the GNU versions of utils are
not prefixed with "g", so you can call them regularly, like ls and
cp, etc.
2016-11-05 15:08:06 +02:00
d2f61879ef
.vimrc: Add some options from @jessfraz 2016-10-31 13:38:56 +02:00
22d98df6fb
.vimrc: Allow using per-directory rc file 2016-10-31 13:26:12 +02:00
e5803a3e8f
.vimrc: Remove solarized_termtrans
I think this was needed years ago, or perhaps in an environment I
had years ago. Doesn't seem to be necessary in environments I use
lately (iTerm on Mac OS X).
2016-10-31 13:24:31 +02:00
41134c326a
.zshrc: Use simpler test for NVM and RVM 2016-10-31 09:38:29 +02:00
ff2994fb10
.zshrc: Add test for RVM 2016-10-31 09:25:41 +02:00
709df7306e
.zshrc: Change test for NVM
Test to see if the NVM script exists and is non-zero sized rather
than if the NVM directory exists.
2016-10-31 09:24:09 +02:00
56b8575eff
.zshrc: Don't use HOMEBREW_NO_INSECURE_REDIRECT
Good idea in theory, but in practice many source files are located
on SourceForge, which apparently doesn't work with this option.
2016-10-31 09:23:05 +02:00
e43493a859
.zshrc: Bump up history from 1000 to 2000
Sometimes terminal sessions are running for days/weeks and you end
up missing some commands that you feel like you "just" ran.
2016-10-31 09:15:54 +02:00
ac5cbad4c0
.zshrc: Set ignore space option correctly
Jesus, this was clearly UNSETTING the option, for all these years!
2016-10-31 09:09:06 +02:00
6e0fc877d5
README.md: Remove references to .npmrc
I stopped using a local npmrc when I started using nvm.
2016-09-07 12:05:19 +03:00
1030818347
.zshrc: Add variables to tweak Homebrew behavior
Homebrew runs `brew update` before every fucking brew command? No
thank you. Also, after reading `man brew` I found there are some
other options to tweak for security and performance, like disallowing
HTTPS→HTTP redirects and using less cores to compile stuff (running
four make jobs on a system with two real cores? WTF, Homebrew?).
2016-08-21 10:57:55 +03:00
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