diff options
author | Andrew Cady <d@jerkface.net> | 2016-01-11 00:37:16 -0500 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2016-01-11 00:37:16 -0500 |
commit | e183c7f8bec0f6b96d4d7893fb8a6bc1121c5dda (patch) | |
tree | 09e34d7bcd1fa7c658411c0e390832d1c936d463 | |
parent | 48998a68bacf91f5c550acfa9fc8945224d316ca (diff) |
new configuration
-rw-r--r-- | dot/bashrc | 20 | ||||
-rwxr-xr-x | dot/local/bin/emacsclient-c | 2 | ||||
-rwxr-xr-x | dot/local/bin/google | 5 | ||||
-rw-r--r-- | dot/local/bin/nvim | 2 | ||||
-rw-r--r-- | dot/local/bin/youtube-dl | 2 | ||||
-rw-r--r-- | dot/ssh/config | 4 |
6 files changed, 32 insertions, 3 deletions
@@ -1,5 +1,7 @@ | |||
1 | # ~/.bashrc: executed by bash(1) for non-login shells. | 1 | # ~/.bashrc: executed by bash(1) for non-login shells. |
2 | 2 | ||
3 | export TZ='America/Detroit' | ||
4 | |||
3 | memoize_retval() | 5 | memoize_retval() |
4 | { | 6 | { |
5 | local var="$1" func="$2" | 7 | local var="$1" func="$2" |
@@ -41,7 +43,7 @@ memoize_retval() | |||
41 | local result="$( stack path 2>&1 | while read k v | 43 | local result="$( stack path 2>&1 | while read k v |
42 | do | 44 | do |
43 | case "$k" in | 45 | case "$k" in |
44 | bin-path:) printf 'PATH=%q\n' "$v" | 46 | bin-path:) printf 'PATH=%q:%q\n' "$PATH" "${v%:$PATH}" # add to _end_ of PATH |
45 | ;; | 47 | ;; |
46 | ghc-package-path:) printf 'GHC_PACKAGE_PATH=%q\n' "$v" | 48 | ghc-package-path:) printf 'GHC_PACKAGE_PATH=%q\n' "$v" |
47 | echo 'export GHC_PACKAGE_PATH' | 49 | echo 'export GHC_PACKAGE_PATH' |
@@ -223,10 +225,15 @@ if ! have srfi; then | |||
223 | } | 225 | } |
224 | fi | 226 | fi |
225 | 227 | ||
226 | if have nvim; then | 228 | # if have nvim; then |
227 | alias vim=nvim | 229 | # alias vim=nvim |
230 | # fi | ||
231 | |||
232 | if have emacsclient; then | ||
233 | alias vi='emacsclient -c' | ||
228 | fi | 234 | fi |
229 | 235 | ||
236 | |||
230 | ### array stack interface ### | 237 | ### array stack interface ### |
231 | 238 | ||
232 | pusha () | 239 | pusha () |
@@ -249,3 +256,10 @@ dorner () | |||
249 | { | 256 | { |
250 | DOOMWADDIR=$HOME/src/zdoom/release LD_LIBRARY_PATH=$HOME/src/zdoom/fmodapi42636linux/api/lib/ $HOME/src/zdoom/release/zdoom -file \$HOME/Dorners\ Last\ Stand Skins/DoRnerLastStand.wad | 257 | DOOMWADDIR=$HOME/src/zdoom/release LD_LIBRARY_PATH=$HOME/src/zdoom/fmodapi42636linux/api/lib/ $HOME/src/zdoom/release/zdoom -file \$HOME/Dorners\ Last\ Stand Skins/DoRnerLastStand.wad |
251 | } | 258 | } |
259 | avahi_hosts () | ||
260 | { | ||
261 | avahi-browse -trap | ( IFS=';'; | ||
262 | while read _ _ _ _ _ _ x _; do | ||
263 | [ "$x" ] && echo $x; | ||
264 | done ) | sort -u | ||
265 | } | ||
diff --git a/dot/local/bin/emacsclient-c b/dot/local/bin/emacsclient-c new file mode 100755 index 0000000..eac9e8f --- /dev/null +++ b/dot/local/bin/emacsclient-c | |||
@@ -0,0 +1,2 @@ | |||
1 | #!/bin/sh | ||
2 | exec emacsclient -c "$@" | ||
diff --git a/dot/local/bin/google b/dot/local/bin/google new file mode 100755 index 0000000..0f6f183 --- /dev/null +++ b/dot/local/bin/google | |||
@@ -0,0 +1,5 @@ | |||
1 | #!/usr/bin/perl -w | ||
2 | |||
3 | $_ = join ' ', map { m/ / ? qq<"$_"> : $_ } @ARGV; | ||
4 | s/([^a-zA-Z0-9])/sprintf "%%%x", ord $1/ge; | ||
5 | exec qw(w3m http://www.google.com/search?q=$_) | ||
diff --git a/dot/local/bin/nvim b/dot/local/bin/nvim new file mode 100644 index 0000000..047d63a --- /dev/null +++ b/dot/local/bin/nvim | |||
@@ -0,0 +1,2 @@ | |||
1 | #!/bin/sh | ||
2 | exec /home/d/src/upstream/neovim/build/bin/nvim "$@" \ No newline at end of file | ||
diff --git a/dot/local/bin/youtube-dl b/dot/local/bin/youtube-dl new file mode 100644 index 0000000..57f3e9d --- /dev/null +++ b/dot/local/bin/youtube-dl | |||
@@ -0,0 +1,2 @@ | |||
1 | #!/bin/sh | ||
2 | exec /home/d/src/upstream/youtube-dl/youtube-dl "$@" \ No newline at end of file | ||
diff --git a/dot/ssh/config b/dot/ssh/config index 41b32ab..9780c12 100644 --- a/dot/ssh/config +++ b/dot/ssh/config | |||
@@ -3,6 +3,10 @@ ForwardAgent yes | |||
3 | Host *.local | 3 | Host *.local |
4 | CheckHostIP no | 4 | CheckHostIP no |
5 | 5 | ||
6 | Host borges | ||
7 | Hostname=borges.local | ||
8 | User=root | ||
9 | |||
6 | Host emmy | 10 | Host emmy |
7 | Hostname=emmy.childrenofmay.org | 11 | Hostname=emmy.childrenofmay.org |
8 | 12 | ||