commit f9c7dd0ef606f12ec61d0af44924560425ff47f8
parent 840b4d1362f01ddbafa27569669cdcf23820fe32
Author: Jake Koroman <jake@jakekoroman.com>
Date: Tue, 1 Jul 2025 17:14:58 -0400
add bashrc and bash_profile.
Diffstat:
3 files changed, 79 insertions(+), 2 deletions(-)
diff --git a/.bash_profile b/.bash_profile
@@ -0,0 +1,31 @@
+# Set up the system, user profile, and related variables.
+# /etc/profile will be sourced by bash automatically
+# Set up the home environment profile.
+if [ -f ~/.profile ]; then source ~/.profile; fi
+
+# Honor per-interactive-shell startup file
+if [ -f ~/.bashrc ]; then source ~/.bashrc; fi
+
+export SUDO="sudo"
+export TERMINAL="st"
+export BROWSER="firefox"
+export EDITOR="emacsclient -c -a 'emacs -nw'"
+export XDG_CONFIG_HOME="$HOME/.config"
+export XDG_DATA_HOME="$HOME/.local/share"
+export XDG_CACHE_HOME="$HOME/.cache"
+# export XDG_DATA_DIRS="$XDG_DATA_DIRS:$HOME/.local/share/flatpak/exports/share"
+export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
+export WINEPREFIX="$XDG_DATA_HOME/wineprefixes/default"
+export GOPATH="$XDG_DATA_HOME/go"
+export RUSTUP_HOME="$XDG_DATA_HOME/rustup"
+export PASSWORD_STORE_DIR="$XDG_DATA_HOME/pass"
+export PYTHON_HISTORY="$XDG_DATA_HOME/python/history"
+export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc"
+export NOTMUCH_CONFIG="$XDG_CONFIG_HOME/notmuch-config"
+export CARGO_HOME="$XDG_DATA_HOME/cargo"
+export WGETRC="$XDG_CONFIG_HOME/wgetrc"
+export MENULAUNCHER_DIR="$XDG_DATA_HOME/menulaunchers"
+export MBSYNCRC="$XDG_CONFIG_HOME/mbsync/config"
+export MANPATH="$MANPATH:$XDG_DATA_HOME/man"
+export _JAVA_AWT_WM_NONREPARENTING="1"
+export PATH="$CARGO_HOME/bin:$HOME/.local/bin:$HOME/scripts:$PATH"
diff --git a/.bashrc 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 $ '
diff --git a/MANIFEST b/MANIFEST
@@ -7,4 +7,6 @@ sxhkd|symlink|.config/
gtk-3.0|symlink|.config/
isyncrc|symlink|.config/
.gitconfig|symlink|
-tmux|symlink|.config/
-\ No newline at end of file
+tmux|symlink|.config/
+.bashrc|symlink|
+.bash_profile|symlink|