summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorJake Koroman <jake@jakekoroman.com>2025-07-01 17:14:58 -0400
committerJake Koroman <jake@jakekoroman.com>2025-07-01 17:14:58 -0400
commitf9c7dd0ef606f12ec61d0af44924560425ff47f8 (patch)
tree615ec8b226006fa9a58369bcab8d12398750de4a /.bashrc
parent840b4d1362f01ddbafa27569669cdcf23820fe32 (diff)
add bashrc and bash_profile.
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc45
1 files changed, 45 insertions, 0 deletions
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 $ '