From 5c221b5d63cd38b9fec3bbd0eefd0c2d02983d4f Mon Sep 17 00:00:00 2001 From: pika Date: Sun, 25 May 2025 22:42:59 +0200 Subject: [PATCH] wip --- .zsh/.aliases.zsh | 10 ++++++++-- .zshrc | 3 ++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.zsh/.aliases.zsh b/.zsh/.aliases.zsh index c57e3f7..daff26c 100644 --- a/.zsh/.aliases.zsh +++ b/.zsh/.aliases.zsh @@ -479,15 +479,21 @@ __git__() { # Check if there are any changes on the remote branch if git diff --quiet "$branch" "origin/$branch"; then + if [ -n $2 ]; then local commit_files="${1:-.}" local commit_message="${2:-wip}" else - local commit_message="${1:-wip}" + if [ ! -f "$1" ]; then + local commit_message="$1" + else + local commit_files="${1:-.}" + local commit_message="wip" + fi fi echo "${CYAN}No changes on the remote branch. Adding changes and pushing with ${RED}${BOLD}'$commit_message'${NC}${CYAN} commit.${NC}" - git add "${commit_files:-.}" + git add "$commit_files" git commit -m "$commit_message" git push else diff --git a/.zshrc b/.zshrc index 3f8fbf6..b5b3a24 100644 --- a/.zshrc +++ b/.zshrc @@ -82,7 +82,8 @@ error_log() { __shell_qol__() { if command_exists oh-my-posh; then # eval "$(oh-my-posh init zsh --config 'https://git.k4li.de/dotfiles/oh-my-posh/raw/branch/main/amro.toml')" - eval "$(oh-my-posh init zsh --config '~/.zsh/themes/power10k_edit.toml')" + # eval "$(oh-my-posh init zsh --config '~/.zsh/themes/power10k_edit.toml')" + eval "$(oh-my-posh init zsh --config '~/.zsh/themes/clean-info.toml')" else echo_missing "oh-my-posh" curl -s https://ohmyposh.dev/install.sh | $_sudo bash --norc -s -- -d /usr/bin/