dotfiles

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

.bashrc (1240B)


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