From 5ebe25730aa48caff38ddb7bac46a5efb0dffe1a Mon Sep 17 00:00:00 2001 From: "flyingscorpio@arch-desktop" Date: Tue, 14 Sep 2021 22:43:14 +0200 Subject: [PATCH] Remove 'cockpit' function, add git- in front of pull and push functions --- dotfiles/shell/aliases | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/dotfiles/shell/aliases b/dotfiles/shell/aliases index 59e8f7a..5710425 100644 --- a/dotfiles/shell/aliases +++ b/dotfiles/shell/aliases @@ -66,12 +66,6 @@ clitip() { xmlstarlet unesc | fmt -80 | iconv -t US } -cockpit() { # enable pass-like commands (ex: cockpit git push) - local start_dir="$PWD" - cd ~/setup-cockpit && "$@" - cd "$start_dir" && echo 'done' -} - system-update() { # Don't update if its a kernel update that will require reboot if checkupdates >/dev/null 2>&1; then @@ -107,7 +101,7 @@ aur-update() { cd "$start_dir" || exit 1 } -pull-from-repos() { +git-pull-from-repos() { local start_dir="$PWD" local git_repos=($(find ~ -name .git -type d -not -path '*/.vim/*' -and -not -path '*/.local/*' -and -not -path '*/builds/*' -exec dirname {} \;)) for repo in "${git_repos[@]}"; do @@ -117,7 +111,7 @@ pull-from-repos() { cd "$start_dir" || exit 1 } -check-unpushed() { +git-check-unpushed() { local start_dir="$PWD" local git_repos=($(find ~ -name .git -type d -not -path '*/.vim/*' -and -not -path '*/.local/*' -and -not -path '*/builds/*' -exec dirname {} \;)) for repo in "${git_repos[@]}"; do