summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2016-01-11 00:37:16 -0500
committerAndrew Cady <d@jerkface.net>2016-01-11 00:37:16 -0500
commite183c7f8bec0f6b96d4d7893fb8a6bc1121c5dda (patch)
tree09e34d7bcd1fa7c658411c0e390832d1c936d463
parent48998a68bacf91f5c550acfa9fc8945224d316ca (diff)
new configuration
-rw-r--r--dot/bashrc20
-rwxr-xr-xdot/local/bin/emacsclient-c2
-rwxr-xr-xdot/local/bin/google5
-rw-r--r--dot/local/bin/nvim2
-rw-r--r--dot/local/bin/youtube-dl2
-rw-r--r--dot/ssh/config4
6 files changed, 32 insertions, 3 deletions
diff --git a/dot/bashrc b/dot/bashrc
index 5232b86..9b257b6 100644
--- a/dot/bashrc
+++ b/dot/bashrc
@@ -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
3export TZ='America/Detroit'
4
3memoize_retval() 5memoize_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 }
224fi 226fi
225 227
226if have nvim; then 228# if have nvim; then
227 alias vim=nvim 229# alias vim=nvim
230# fi
231
232if have emacsclient; then
233 alias vi='emacsclient -c'
228fi 234fi
229 235
236
230### array stack interface ### 237### array stack interface ###
231 238
232pusha () 239pusha ()
@@ -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}
259avahi_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
2exec 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;
4s/([^a-zA-Z0-9])/sprintf "%%%x", ord $1/ge;
5exec 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
2exec /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
2exec /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
3Host *.local 3Host *.local
4CheckHostIP no 4CheckHostIP no
5 5
6Host borges
7Hostname=borges.local
8User=root
9
6Host emmy 10Host emmy
7Hostname=emmy.childrenofmay.org 11Hostname=emmy.childrenofmay.org
8 12