git.fiddlerwoaroof.com
Browse code

Finish minor changes to zsh configuration

Ed L authored on 08/07/2017 19:50:50
Showing 5 changed files
... ...
@@ -131,6 +131,7 @@ NeoBundle 'ytsunetsune/unite-outline-euslisp'
131 131
 NeoBundle 'xolox/vim-misc'
132 132
 NeoBundle 'xolox/vim-easytags'
133 133
 NeoBundle 'majutsushi/tagbar'
134
+NeoBundle 'LnL7/vim-nix'
134 135
 
135 136
 
136 137
 " Required:
... ...
@@ -66,6 +66,10 @@ gta() {
66 66
     echo $cmd >> $HOME/.gtaliases
67 67
 }
68 68
 
69
+gtmpdir() {
70
+  cd "$(mktemp -d "$@")"
71
+}
72
+
69 73
 source $HOME/.gtaliases
70 74
 gthaskell() { gtp haskell }
71 75
 gtprolog() { gtp prolog }
... ...
@@ -1,7 +1,9 @@
1 1
 if command -v emacsclient 2>&1 >/dev/null; then
2
-  function newemacs() {
3
-    emacsclient -c "$@"
4
-  }
2
+  cat > "$HOME/bin/newemacs" <<"EOF"
3
+#!/bin/sh
4
+emacsclient -c "$@"
5
+EOF
6
+  chmod +x "$HOME/bin/newemacs"
5 7
   export VISUAL=newemacs
6 8
 elif command -v vim 2>&1 >/dev/null; then
7 9
   export VISUAL=$(which vim)
8 10
new file mode 120000
... ...
@@ -0,0 +1 @@
1
+../../3dp/nix-zsh-completions
0 2
\ No newline at end of file
... ...
@@ -171,6 +171,9 @@ setopt autocd
171 171
 setopt chaselinks
172 172
 setopt markdirs
173 173
 
174
+source $HOME/git_repos/3dp/nix-zsh-completions/nix.plugin.zsh
175
+fpath=($HOME/git_repos/3dp/nix-zsh-completions $fpath)
176
+
174 177
 # The following lines were added by compinstall
175 178
 zstyle ':completion:*' completer _expand _complete #_match _prefix
176 179
 zstyle ':completion:*' format 'Completing %D %d'
... ...
@@ -520,6 +523,10 @@ mkcd() {
520 523
   cd "$1"
521 524
 }
522 525
 
526
+gtmpdir() {
527
+  cd "$(mktemp -d "$@")"
528
+}
529
+
523 530
 for x in `ls $HOME/.zsh.d/*.zsh`; do
524 531
   source "$x"
525 532
 done