From d3433155f5c8963207ffe93b2ca72604eb0262c5 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Sat, 8 Jul 2017 21:50:58 +0200 Subject: [PATCH] iterm2: Correctly handle empty ~/.iterm2 folder --- plugins/iterm2/iterm2.zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/iterm2/iterm2.zshrc b/plugins/iterm2/iterm2.zshrc index 3e245ca..470e873 100644 --- a/plugins/iterm2/iterm2.zshrc +++ b/plugins/iterm2/iterm2.zshrc @@ -140,7 +140,7 @@ iterm2_print_state_data printf "\033]1337;ShellIntegrationVersion=5;shell=zsh\007" # Setup iTerm2 command aliases -for cmd (~/.iterm2/*); do +for cmd (~/.iterm2/*(N)); do [[ -x "$cmd" ]] && alias "$(basename "$cmd")=$cmd" done unset cmd -- 2.39.2