dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 7c0d47b0ca364408f25c0f31aaa8b937b84f113e
parent 6fec6ed9a00055fb7844ff07c5caa66229414d17
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Fri,  1 Jun 2018 09:10:26 -0400

Only show pwd contents in interactive zsh shells

Diffstat:
Mlinks/.zshrc | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/links/.zshrc b/links/.zshrc @@ -229,7 +229,9 @@ _fzf_complete_pass() { . ~/.commands.sh . ~/.locale -function chpwd { ls } +if [[ -o interactive ]]; then + function chpwd { ls } +fi # report startup diagnostics if requested [ "$debug_startup" = true ] && zprof || :