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 f="fossil"
      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 
     20 alias xi="$SUDO xbps-install"
     21 alias xq="xbps-query"
     22 
     23 # Export 'SHELL' to child processes.  Programs such as 'screen'
     24 # honor it and otherwise use /bin/sh.
     25 export SHELL
     26 export HISTSIZE=5000
     27 
     28 if [[ $- != *i* ]]
     29 then
     30     # We are being invoked from a non-interactive shell.  If this
     31     # is an SSH session (as in "ssh host command"), source
     32     # /etc/profile so we get PATH and other essential variables.
     33     [[ -n "$SSH_CLIENT" ]] && source /etc/profile
     34 
     35     # Don't do anything else.
     36     return
     37 fi
     38 
     39 # Source the system-wide file.
     40 [ -f /etc/bashrc ] && source /etc/bashrc
     41 
     42 # Setup eat integration
     43 [ -n "$EAT_SHELL_INTEGRATION_DIR" ] &&   source "$EAT_SHELL_INTEGRATION_DIR/bash"
     44 
     45 PS1='\u@\h \w $ '