From 9e393f020bbc2d0f19e2c7be0e7fe5fb76ef76f0 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Wed, 12 Nov 2014 20:36:15 -0800 Subject: [PATCH] stuff --- home/-shrc | 1 + home/zshrc | 8 ++------ sh/conv | 5 ----- sh/isup | 7 +++++++ sh/unconv | 5 ----- 5 files changed, 10 insertions(+), 16 deletions(-) delete mode 100755 sh/conv create mode 100644 sh/isup delete mode 100755 sh/unconv diff --git a/home/-shrc b/home/-shrc index c82763d..5afcbc5 100644 --- a/home/-shrc +++ b/home/-shrc @@ -2,6 +2,7 @@ # for both zsh and bash #umask 027 # screw others +umask 022 # don't inherit last umask. pip will break itself. ADDPATH() { grep ":$1:" <<<":$PATH:" >/dev/null || export PATH="$PATH:$1" diff --git a/home/zshrc b/home/zshrc index 62a6a88..162640f 100644 --- a/home/zshrc +++ b/home/zshrc @@ -45,6 +45,7 @@ function { append_history share_history # across sessions hist_expire_dups_first # sharing/appending will result in dups hist_ignore_dups # don't push lines identical to the previous + hist_ignore_space # don't push lines beginning with spaces auto_cd # exec a dir to cd auto_pushd # cd acts as pushd no_match # error on bad tab-complete @@ -54,6 +55,7 @@ function { complete_in_word # enable tab completion when cursor between words rc_quotes # 'you''re dumb' like "you're dumb" brace_ccl # for character ranges like {a-z} + ksh_typeset # treat `local x=$(cmd)` and `x=$(cmd)` the same ) setopt "${opts[@]}" unsetopt rm_star_silent rm_star_wait # yolo @@ -64,12 +66,6 @@ autoload -U zmv zmodload zsh/mathfunc autoload -Uz zcalc -isup() { - local c - curl -sLI -w '%{http_code}' -o /dev/null "$1" | read -r c - [ "${c:0:1}" -eq 2 ] -} - DIRSTACKSIZE=24 dirprev() { pushd -q +1 diff --git a/sh/conv b/sh/conv deleted file mode 100755 index 9c0242f..0000000 --- a/sh/conv +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/zsh -conv() { - printf "%08x\n" $(((0x$1-0x664C05A0+0x80000000)^0)) -} -conv $1 diff --git a/sh/isup b/sh/isup new file mode 100644 index 0000000..739b122 --- /dev/null +++ b/sh/isup @@ -0,0 +1,7 @@ +#!/usr/bin/zsh +isup() { + local c + curl -sLI -w '%{http_code}' -o /dev/null "$1" | read -r c + [ "${c:0:1}" -eq 2 ] +} +isup "$@" diff --git a/sh/unconv b/sh/unconv deleted file mode 100755 index a9658bc..0000000 --- a/sh/unconv +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/zsh -unconv() { - printf "%08x\n" $(((0x$1^0)&0x00FFFFFF+0x664C05A0)) -} -unconv $1