Browse code
Finish minor changes to zsh configuration
Ed L authored on 08/07/2017 19:50:50
Showing 5 changed files
Showing 5 changed files
- vimrc
- zsh/zsh_plugins/00-aaa.zsh
- zsh/zsh_plugins/dependencies/editor-setup.zsh
- zsh/zsh_plugins/nix-zsh-completions
- zsh/zshrc
... | ... |
@@ -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) |
... | ... |
@@ -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 |