diff options
Diffstat (limited to '.bashrc')
| -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 |
