From 10de77b77e28710b591152371efc436999521739 Mon Sep 17 00:00:00 2001 From: David Todd Date: Mon, 11 Jan 2021 22:27:28 -0600 Subject: [PATCH] remove insert sudo shortcut --- .zshrc | 9 --------- 1 file changed, 9 deletions(-) diff --git a/.zshrc b/.zshrc index 0c539ff..961d268 100644 --- a/.zshrc +++ b/.zshrc @@ -30,15 +30,6 @@ setopt NOCLOBBER # Don’t nice background processes setopt NO_BG_NICE -# Makes Alt-s insert a sudo at beginning of prompt -function insert_sudo { - if [[ $BUFFER != "sudo "* ]]; then - BUFFER="sudo $BUFFER"; CURSOR+=6 - fi -} -zle -N insert-sudo insert_sudo -bindkey "^[s" insert-sudo - # Check for updates... # Stolen and modified Oh-My-ZSH's update system if [ "${ENABLE_DOTFILES_AUTO_UPDATE}" ]; then