From a54305b8378582ad149081e11f5c24f8dd3a9a5a Mon Sep 17 00:00:00 2001 From: Christian Colglazier Date: Thu, 17 Apr 2025 07:06:49 -0400 Subject: [PATCH] Git stash alias --- zsh/.zshrc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 5e14ab2..941684b 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -1,7 +1,3 @@ -HISTFILE=~/.zsh_history -HISTSIZE=99999999 -SAVEHIST=99999999 - autoload -Uz vcs_info precmd() { vcs_info } zstyle ':vcs_info:git:*' formats '%b ' @@ -16,6 +12,11 @@ zstyle :compinstall filename '~/.zshrc' autoload -Uz compinit compinit +HISTFILE=~/.zsh_history +HISTSIZE=99999999 +SAVEHIST=99999999 + + # Text Editor alias emacs='emacs -nw' alias e='emacs -nw' @@ -36,6 +37,9 @@ alias g='git' alias p='git pull' alias gp='git push' alias gd='git diff $(git rev-parse --abbrev-ref HEAD)' +alias stash='git stash create; git stash push' +alias pop='git stash pop' + export TERM=xterm export EDITOR=emacs