commit a9f0c47bdf71b99ec2f8518c966f45678a7cd1a9
parent 17481257a6a8b1dc912ea649c0376e2df181a552
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Mon, 13 Apr 2020 22:33:47 +0200
zsh: misc
Former-commit-id: e6ec75c67c779d6cdc80fbdb4dd76e14086caf27
Diffstat:
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/shell/functions b/shell/functions
@@ -8,7 +8,7 @@ hr() { for ((i=0; i<$(tput cols); i++)); do echo -n "#"; done; echo; } # insert
vimq() { vim -q <($(fc -nl -1)); } # load results of last command (often ag) in vim quickfix
gpip(){ PIP_REQUIRE_VIRTUALENV="" pip "$@"; } # Access global pip while using virtualenvs
nls() { expr `ls -l | wc -l | xargs echo` - 1; } # Count the number of files in the directory
-zsh_recomp() { rm ~/.zcompdump && compinit; }
+reload-completions() { rm ~/.zcompdump && compinit; }
notify() {
if type terminal-notifier &> /dev/null; then
terminal-notifier -title "$1" -message "$2" -activate com.googlecode.iterm2
diff --git a/shell/zshrc b/shell/zshrc
@@ -105,6 +105,10 @@ lfcd () {
}
bindkey -s '^o' 'lfcd\n'
+_zsh_cli_fg() { fg; }
+zle -N _zsh_cli_fg
+bindkey '^Z' _zsh_cli_fg
+
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
source_if_exists $DOTFILES/shell/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh