From 7c6b8a29cf1c237b88ec91f5a1aedb2ddc0d4bb5 Mon Sep 17 00:00:00 2001 From: Amir Nissim Date: Tue, 16 Jun 2015 10:44:09 +0300 Subject: [PATCH] git: update `git clean` alias to clean directories as well --- modules/git/README.md | 2 +- modules/git/alias.zsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/git/README.md b/modules/git/README.md index 7f9c834..ed2890b 100644 --- a/modules/git/README.md +++ b/modules/git/README.md @@ -318,7 +318,7 @@ zstyle ':prezto:module:git:alias' skip 'yes' index nor the working tree. - `gwR` resets the current HEAD, index and working tree to the specified state. - `gwc` removes untracked files from the working tree (dry-run). -- `gwC` removes untracked files from the working tree. +- `gwC` removes untracked files and directories from the working tree. - `gwx` removes files from the working tree and from the index recursively. - `gwX` removes files from the working tree and from the index recursively and forcefully. diff --git a/modules/git/alias.zsh b/modules/git/alias.zsh index 8a2771b..977eaac 100644 --- a/modules/git/alias.zsh +++ b/modules/git/alias.zsh @@ -269,7 +269,7 @@ if ! zstyle -t ':prezto:module:git:alias' skip; then alias gwr='git reset --soft' alias gwR='git reset --hard' alias gwc='git clean --dry-run' - alias gwC='git clean --force' + alias gwC='git clean -d --force' alias gwx='git rm -r' alias gwX='git rm -r --force'