diff options
| author | Jake Koroman <jake@jakekoroman.com> | 2025-10-18 10:12:32 -0400 |
|---|---|---|
| committer | Jake Koroman <jake@jakekoroman.com> | 2025-10-18 10:12:32 -0400 |
| commit | a1970dcc39af718bdb237bc3edd7bbacb3b9248e (patch) | |
| tree | 3be6972fd69d336d3e9bed4298d7bb02e63e84c3 | |
| parent | a6beb2aaacd92bfe48878f0cb4712f0e2c1cc677 (diff) | |
bash: add more aliases.
| -rw-r--r-- | .bashrc | 24 |
1 files changed, 22 insertions, 2 deletions
@@ -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 |
