From fb1e4f6ccdac16c1b968e661d861c45ccc7228d8 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Wed, 5 Jun 2024 20:21:04 +0200 Subject: [PATCH] bash: move gcm to scripts Signed-off-by: Michael Grote --- .bash_functions | 9 --------- scripts/gcm | 1 + scripts/git_commit | 8 ++++++++ 3 files changed, 9 insertions(+), 9 deletions(-) create mode 120000 scripts/gcm create mode 100755 scripts/git_commit diff --git a/.bash_functions b/.bash_functions index 8b9dde8..5311cec 100644 --- a/.bash_functions +++ b/.bash_functions @@ -48,15 +48,6 @@ function ssh { tmux rename-window "$(hostname -f)" fi } -function gcm { - if [ -z "$1" ]; then - echo "Commit-Message fehlt, setze Default-Message..." - git commit -s -m "changed Files: $(git diff --name-only --staged)" - else - # übergibt alle argumente an git commit -m als commit nachricht - git commit -s -m "$*" - fi -} function gp { git pull "$@" } diff --git a/scripts/gcm b/scripts/gcm new file mode 120000 index 0000000..57bf3e6 --- /dev/null +++ b/scripts/gcm @@ -0,0 +1 @@ +git_commit \ No newline at end of file diff --git a/scripts/git_commit b/scripts/git_commit new file mode 100755 index 0000000..762a20a --- /dev/null +++ b/scripts/git_commit @@ -0,0 +1,8 @@ +#!/bin/bash +if [ -z "$1" ]; then + echo "Commit-Message fehlt, setze Default-Message..." + git commit -s -m "changed Files: $(git diff --name-only --staged)" +else + # übergibt alle argumente an git commit -m als commit nachricht + git commit -s -m "$*" +fi