From 51d3c5921890e134cf59824217884c47f269f86b Mon Sep 17 00:00:00 2001 From: The_miro Date: Mon, 25 Nov 2024 15:37:08 +0100 Subject: [PATCH] added cool alias for direct commiting to git and added resources to todo --- .bashrc | 15 +++++++++++++++ .zshrc | 13 +++++++++++++ 2 files changed, 28 insertions(+) diff --git a/.bashrc b/.bashrc index 1b88a07..69bf2c1 100644 --- a/.bashrc +++ b/.bashrc @@ -21,6 +21,19 @@ alias gita="git add ." alias gitc="git commit -m" alias gitp="git push" + +function gitf() { + + if [ -z $1 ]; then + echo "no commit message, doing nothing" + else + echo "directly commiting with message \"$1\"" + git add . + git commit -m $1 + git push + fi +} + alias icat="kitten icat" alias cls="clear" @@ -35,6 +48,8 @@ function y() { rm -f -- "$tmp" } + + eval "$(starship init bash)" fastfetch --logo-color-1 red --logo-color-2 red --color red -l ~/Dotfiles/pin.txt diff --git a/.zshrc b/.zshrc index 01b83f5..673517f 100755 --- a/.zshrc +++ b/.zshrc @@ -124,6 +124,18 @@ alias gitc="git commit -m" alias gitp="git push" alias gitg="git pull" +function gitf() { + + if [ -z $1 ]; then + echo "no commit message, doing nothing" + else + echo "directly commiting with message \"$1\"" + git add . + git commit -m $1 + git push + fi +} + alias icat="kitten icat" alias cls="clear" @@ -139,6 +151,7 @@ function y() { } + eval "$(starship init zsh)" fastfetch --logo-color-1 red --logo-color-2 red --color red -l ~/Dotfiles/pin.txt