aboutsummaryrefslogtreecommitdiffstats
path: root/zsh
diff options
context:
space:
mode:
authorGravatar Tom Willemse2016-10-19 22:52:25 +0200
committerGravatar Tom Willemse2016-10-19 22:52:25 +0200
commit4a6a1e36299ecd6c3dd567ec0039783a53b543ee (patch)
treef93d94a0f5ca6ebc4f245e6dbfabe05955abe411 /zsh
parente3d8ff0e9a8dda853a4b7e3cee1f8a4f23bd2832 (diff)
downloadnew-dotfiles-4a6a1e36299ecd6c3dd567ec0039783a53b543ee.tar.gz
new-dotfiles-4a6a1e36299ecd6c3dd567ec0039783a53b543ee.zip
Move zsh config to org
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.dir-locals.el2
-rw-r--r--zsh/.gitignore3
-rw-r--r--zsh/.zshrc0
-rw-r--r--zsh/zshrc.org16
4 files changed, 21 insertions, 0 deletions
diff --git a/zsh/.dir-locals.el b/zsh/.dir-locals.el
new file mode 100644
index 0000000..b294144
--- /dev/null
+++ b/zsh/.dir-locals.el
@@ -0,0 +1,2 @@
+((sh-mode
+ (sh-shell . "zsh")))
diff --git a/zsh/.gitignore b/zsh/.gitignore
index f940b94..2e8258c 100644
--- a/zsh/.gitignore
+++ b/zsh/.gitignore
@@ -1 +1,4 @@
+*.zwc
+
.profile
+.zshrc
diff --git a/zsh/.zshrc b/zsh/.zshrc
deleted file mode 100644
index e69de29..0000000
--- a/zsh/.zshrc
+++ /dev/null
diff --git a/zsh/zshrc.org b/zsh/zshrc.org
new file mode 100644
index 0000000..54e9730
--- /dev/null
+++ b/zsh/zshrc.org
@@ -0,0 +1,16 @@
+#+TITLE: ZSH
+
+Autoload any ZSH function from =$HOME/.zsh/functions=.
+
+#+BEGIN_SRC sh
+ fpath=($HOME/.zsh/functions $fpath)
+ autoload -U $HOME/.zsh/functions/*(:t)
+#+END_SRC
+
+Use rlwrap on some less-than-pleasant REPLs that don't have GNU
+Readline-like features themselves.
+
+#+BEGIN_SRC sh
+ alias csi="rlwrap csi"
+ alias scsh="rlwrap scsh"
+#+END_SRC