From a1970dcc39af718bdb237bc3edd7bbacb3b9248e Mon Sep 17 00:00:00 2001 From: Jake Koroman Date: Sat, 18 Oct 2025 10:12:32 -0400 Subject: bash: add more aliases. --- .bashrc | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index 4ea9441..ceebbb8 100644 --- a/.bashrc +++ b/.bashrc @@ -4,7 +4,7 @@ alias diff="diff --color=auto" alias ls="ls -hN --color=auto --group-directories-first" alias l="ls -l" alias ll="ls -la" -alias f="fossil" +alias j="jobs" alias v="$EDITOR" alias vv="$SUDO $EDITOR" alias nt="$BROWSER --new-tab" @@ -16,6 +16,11 @@ alias be="v $MENULAUNCHER_DIR/bookmarks" alias mkdir="mkdir -pv" alias yt="yt-dlp --embed-metadata --embed-chapters --sponsorblock-remove sponsor -i" alias yta="yt-dlp -f bestaudio -x --audio-format mp3 --sponsorblock-remove sponsor -i" +alias gs="git status" +alias gd="git diff" +alias gl="git log" +alias gc="git commit" +alias ga="git add" # Export 'SHELL' to child processes. Programs such as 'screen' # honor it and otherwise use /bin/sh. @@ -26,4 +31,19 @@ export HISTSIZE=5000 [ -n "$EAT_SHELL_INTEGRATION_DIR" ] && source "$EAT_SHELL_INTEGRATION_DIR/bash" -PS1='\u@\h \w $ ' +PROMPT_DIRTRIM=2 +# PS1='\u@\h \w $ ' +PS1='\H [\[\e[94m\]\w\[\e[0m\]] \$ ' + +function red_text() { + RED="\033[91m" + RESET="\033[0m" + echo -ne "$(echo $RED)$1$(echo $RESET)" +} + +function todo() { + echo -e "[$(red_text TODO)]: $1" +} + +alias gobr="~/programming/gobr/gobr" +~/programming/gobr/gobr -- cgit v1.2.3