From f9c7dd0ef606f12ec61d0af44924560425ff47f8 Mon Sep 17 00:00:00 2001 From: Jake Koroman Date: Tue, 1 Jul 2025 17:14:58 -0400 Subject: add bashrc and bash_profile. --- .bashrc | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .bashrc (limited to '.bashrc') diff --git a/.bashrc b/.bashrc new file mode 100644 index 0000000..5077ff3 --- /dev/null +++ b/.bashrc @@ -0,0 +1,45 @@ +alias ip="ip --color=auto" +alias grep="grep --color=auto" +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 v="$EDITOR" +alias vv="$SUDO $EDITOR" +alias nt="$BROWSER --new-tab" +alias nw="$BROWSER --new-window" +alias cp="cp -iv" +alias mv="mv -iv" +alias rm="rm -vI" +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 xi="$SUDO xbps-install" +alias xq="xbps-query" + +# Export 'SHELL' to child processes. Programs such as 'screen' +# honor it and otherwise use /bin/sh. +export SHELL +export HISTSIZE=5000 + +if [[ $- != *i* ]] +then + # We are being invoked from a non-interactive shell. If this + # is an SSH session (as in "ssh host command"), source + # /etc/profile so we get PATH and other essential variables. + [[ -n "$SSH_CLIENT" ]] && source /etc/profile + + # Don't do anything else. + return +fi + +# Source the system-wide file. +[ -f /etc/bashrc ] && source /etc/bashrc + +# Setup eat integration +[ -n "$EAT_SHELL_INTEGRATION_DIR" ] && source "$EAT_SHELL_INTEGRATION_DIR/bash" + +PS1='\u@\h \w $ ' -- cgit v1.2.3