dotfiles

my active dotfiles
git clone git://git.jakekoroman.com/dotfiles
Log | Files | Refs | README

.bashrc (1293B)


      1 alias ip="ip --color=auto"
      2 alias grep="grep --color=auto"
      3 alias diff="diff --color=auto"
      4 alias ls="ls -hN --color=auto --group-directories-first"
      5 alias l="ls -l"
      6 alias ll="ls -la"
      7 alias j="jobs"
      8 alias v="$EDITOR"
      9 alias vv="$SUDO $EDITOR"
     10 alias nt="$BROWSER --new-tab"
     11 alias nw="$BROWSER --new-window"
     12 alias cp="cp -iv"
     13 alias mv="mv -iv"
     14 alias rm="rm -vI"
     15 alias be="v $MENULAUNCHER_DIR/bookmarks"
     16 alias mkdir="mkdir -pv"
     17 alias yt="yt-dlp --embed-metadata --embed-chapters --sponsorblock-remove sponsor -i"
     18 alias yta="yt-dlp -f bestaudio -x --audio-format mp3 --sponsorblock-remove sponsor -i"
     19 alias gs="git status"
     20 alias gd="git diff"
     21 alias gl="git log"
     22 alias gc="git commit"
     23 alias ga="git add"
     24 
     25 # Export 'SHELL' to child processes.  Programs such as 'screen'
     26 # honor it and otherwise use /bin/sh.
     27 export SHELL
     28 export HISTSIZE=5000
     29 
     30 [ -f /etc/bash/bashrc ] && source /etc/bash/bashrc
     31 complete -F _command doas
     32 
     33 [ -n "$EAT_SHELL_INTEGRATION_DIR" ] && source "$EAT_SHELL_INTEGRATION_DIR/bash"
     34 
     35 PROMPT_DIRTRIM=2
     36 # PS1='\u@\h \w $ '
     37 PS1='\H [\[\e[94m\]\w\[\e[0m\]] \$ '
     38 
     39 function red_text() {
     40     RED="\033[91m"
     41     RESET="\033[0m"
     42     echo -ne "$(echo $RED)$1$(echo $RESET)"
     43 }
     44 
     45 function todo() {
     46     echo -e "[$(red_text TODO)]: $1"
     47 }
     48 
     49 alias gobr="~/programming/gobr/gobr"
     50 ~/programming/gobr/gobr