dotfiles

Personal dotfiles
git clone git://git.laack.co/dotfiles.git
Log | Files | Refs

commit 0203873e289192705861bfb9113c14acb45035df
parent 8ae1582a656d379a64ab439616319fd60e5d5417
Author: Andrew Laack <andrew@laack.co>
Date:   Wed,  2 Sep 2026 17:05:32 -0500

Simplified bashrc'

Diffstat:
Mbashrc | 247+++++++++++++++++++++++++++++++++++++++++--------------------------------------
1 file changed, 128 insertions(+), 119 deletions(-)

diff --git a/bashrc b/bashrc @@ -2,9 +2,9 @@ GPG_TTY=$(tty) export GPG_TTY export PATH=$PATH:/sbin export PATH=$PATH:/home/andrew/bin:/home/andrew/go/bin -export PATH=$PATH:/home/andrew/bin/matrix -export PATH=$PATH:/home/andrew/bin/email -export PATH=$PATH:/home/andrew/bin/gotify +# export PATH=$PATH:/home/andrew/bin/matrix +# export PATH=$PATH:/home/andrew/bin/email +# export PATH=$PATH:/home/andrew/bin/gotify export PATH=$PATH:/home/andrew/bin/backups export PASSWORD_STORE_DIR=~/gitRepos/passwords @@ -25,19 +25,19 @@ HISTFILESIZE=2000 # check the window size after each command and, if necessary, # update the values of LINES and COLUMNS. -shopt -s checkwinsize -if [ -n "$force_color_prompt" ]; then - if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then - # We have color support; assume it's compliant with Ecma-48 - # (ISO/IEC-6429). (Lack of such support is extremely rare, and such - # a case would tend to support setf rather than setaf.) - color_prompt=yes - else - color_prompt= - fi -fi - -unset color_prompt force_color_prompt +# shopt -s checkwinsize +# if [ -n "$force_color_prompt" ]; then +# if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then +# # We have color support; assume it's compliant with Ecma-48 +# # (ISO/IEC-6429). (Lack of such support is extremely rare, and such +# # a case would tend to support setf rather than setaf.) +# color_prompt=yes +# else +# color_prompt= +# fi +# fi + +# unset color_prompt force_color_prompt # If this is an xterm set the title to user@host:dir # enable color support of ls and also add handy aliases @@ -56,10 +56,8 @@ eval "$(zoxide init bash)" cd() { if [ "$1" ]; then - # If a path is provided, use zoxide's 'cd' subcommand to jump to it z "$1" else - # Otherwise, behave like the default cd command (go to home directory) command cd "$@" fi } @@ -70,25 +68,25 @@ cd() { #alias tmux-new='function _tmux_new(){ tmux new-session -s "$1"; }; _tmux_new' #alias tmux-end='function _tmux_end(){ tmux kill-session -t "$1"; }; _tmux_end' -export SFML_INCLUDE_DIR=/usr/local/sfml/include -export SFML_LIB_DIR=/usr/local/sfml/lib -export LD_LIBRARY_PATH=$SFML_LIB_DIR:$LD_LIBRARY_PATH +# export SFML_INCLUDE_DIR=/usr/local/sfml/include +# export SFML_LIB_DIR=/usr/local/sfml/lib +# export LD_LIBRARY_PATH=$SFML_LIB_DIR:$LD_LIBRARY_PATH # requires auth -clone-public() { - read -p "Enter repository name: " REPO_NAME - git clone ssh://brgr/home/shared/git/public-repos/$REPO_NAME.git -} - -clone-private() { - read -p "Enter repository name: " REPO_NAME - git clone ssh://brgr/home/shared/git/private-repos/$REPO_NAME.git -} +# clone-public() { +# read -p "Enter repository name: " REPO_NAME +# git clone ssh://brgr/home/shared/git/public-repos/$REPO_NAME.git +# } +# +# clone-private() { +# read -p "Enter repository name: " REPO_NAME +# git clone ssh://brgr/home/shared/git/private-repos/$REPO_NAME.git +# } alias pw='head -c -1 ~/gitRepos/keys/pw.txt | xclip -selection clipboard' -alias pw_old='cat ~/gitRepos/keys/pw-old.txt | xclip -selection clipboard' +# alias pw_old='cat ~/gitRepos/keys/pw-old.txt | xclip -selection clipboard' -alias mount-server="sshfs andrew@brgr.heron-peacock.ts.net:/home/shared/ /mnt/server/ -o reconnect" +# alias mount-server="sshfs andrew@brgr.heron-peacock.ts.net:/home/shared/ /mnt/server/ -o reconnect" # alias mount-home="sshfs andrew@brgr.heron-peacock.ts.net:/home/andrew/ /home/andrew/mount/ -o reconnect" # alias mount-shared="sshfs andrew@brgr.heron-peacock.ts.net:/home/shared/ /home/andrew/mount/ -o reconnect" @@ -97,22 +95,22 @@ sendit() { } export EDITOR=nvim -alias sshServer='ssh andrew@brgr.heron-peacock.ts.net' +# alias sshServer='ssh andrew@brgr.heron-peacock.ts.net' export PS1='\u@\h:\W\$ ' #TERM=xterm #TERM=st-256color -TERM=xterm-256color +# TERM=xterm-256color #TERM=screen -alias disableOff="xset s off && xset -dpms && xset s noblank" +# alias disableOff="xset s off && xset -dpms && xset s noblank" -case $TERM in - rxvt|*term) - PROMPT_COMMAND='echo -ne "\033]0;$PWD\007"' - ;; -esac +# case $TERM in +# rxvt|*term) +# PROMPT_COMMAND='echo -ne "\033]0;$PWD\007"' +# ;; +# esac export LANG=en_US.UTF-8 @@ -123,34 +121,34 @@ export LANG=en_US.UTF-8 # eval "$(pyenv init -)" #xrdb ~/.Xresources alias vim="nvim" -alias leet="~/bin/leetcode-submission.sh" +# alias leet="~/bin/leetcode-submission.sh" #source /usr/share/fzf/key-bindings.bash alias checkout="~/bin/checkout.sh" -alias branch="git branch" +# alias branch="git branch" alias src="source ~/venv/bin/activate" -zcp() { - if [ -z "$1" ]; then - echo "No destination specified. Usage: zcp <zoxide target>" - return 1 - fi - cp -r $(find . | fzf -m) "$(zoxide query "$1")" -} - -zmv() { - if [ -z "$1" ]; then - echo "No destination specified. Usage: zmv <zoxide target>" - return 1 - fi - mv $(find . | fzf -m) "$(zoxide query "$1")" -} +# zcp() { +# if [ -z "$1" ]; then +# echo "No destination specified. Usage: zcp <zoxide target>" +# return 1 +# fi +# cp -r $(find . | fzf -m) "$(zoxide query "$1")" +# } +# +# zmv() { +# if [ -z "$1" ]; then +# echo "No destination specified. Usage: zmv <zoxide target>" +# return 1 +# fi +# mv $(find . | fzf -m) "$(zoxide query "$1")" +# } eval "$(fzf --bash)" -mans() { - man -k . | awk '{print $1}' | fzf | sed 's/(.*)//' | xargs man -} +# mans() { +# man -k . | awk '{print $1}' | fzf | sed 's/(.*)//' | xargs man +# } packages() { local pkgs @@ -158,11 +156,11 @@ packages() { sudo pacman -S $pkgs } -what-the-hell-is-even-that(){ - TMP=$(mktemp) - pacman -Sq --info > $TMP - nvim $TMP -} +# what-the-hell-is-even-that(){ +# TMP=$(mktemp) +# pacman -Sq --info > $TMP +# nvim $TMP +# } #bind '"\C-e" edit-and-execute-command' export LYNX_CFG=/home/andrew/.config/lynx/lynx.cfg @@ -171,7 +169,7 @@ export LYNX_CFG=/home/andrew/.config/lynx/lynx.cfg # exec mtm #fi #alias abd="/home/andrew/bin/attach-abduco.sh" -alias a="/home/andrew/bin/abduco.sh" +# alias a="/home/andrew/bin/abduco.sh" # fixes bind message if [[ $- == *i* ]]; then @@ -181,27 +179,27 @@ fi source ~/gitRepos/keys/secrets.txt > /dev/null 2>&1 # fuck this -alias format="uv run dev manual-precommit" +# alias format="uv run dev manual-precommit" -alias lock="i3lock -c 000000" +# alias lock="i3lock -c 000000" -build-run() { - tcc $1 && ./a.out $2 $3 $4 $5 $6 $7 $8 $9 $10 # if you need more, who the fuck do you think you are? -} +# build-run() { +# tcc $1 && ./a.out $2 $3 $4 $5 $6 $7 $8 $9 $10 # if you need more, who the fuck do you think you are? +# } # uv -export PATH="/home/andrew/.local/bin:$PATH" +# export PATH="/home/andrew/.local/bin:$PATH" -alias dev_build="uv run sculptor/scripts/dev.py rebuild_container_for_local_testing my_dev_control_plane_volume && SCULPTOR_CONTROL_PLANE_VOLUME=my_dev_control_plane_volume just tmux-dev" -alias build_control_plane="uv run sculptor/sculptor/cli/dev.py build-control-plane" +# alias dev_build="uv run sculptor/scripts/dev.py rebuild_container_for_local_testing my_dev_control_plane_volume && SCULPTOR_CONTROL_PLANE_VOLUME=my_dev_control_plane_volume just tmux-dev" +# alias build_control_plane="uv run sculptor/sculptor/cli/dev.py build-control-plane" -[ -f "/home/andrew/.ghcup/env" ] && . "/home/andrew/.ghcup/env" # ghcup-env -alias format="uv run imbue_core/imbue_core/ratchets/test_all_ratchets.py test" -alias clean-sculptor="rm -rf ~/.dev_sculptor && rm -rf ~/.sculptor && sudo docker system prune -af" -#alias containers="docker exec -it $(docker ps -q | fzf ) bash" -alias rust-book="rustup doc --book" -alias yt-audio="yt-dlp --embed-metadata --embed-thumbnail -t mp3 $1" -alias favorite="find ~/syncing/music -type f | fzf >> ~/syncing/music/favorites.m3u" +# [ -f "/home/andrew/.ghcup/env" ] && . "/home/andrew/.ghcup/env" # ghcup-env +# alias format="uv run imbue_core/imbue_core/ratchets/test_all_ratchets.py test" +# alias clean-sculptor="rm -rf ~/.dev_sculptor && rm -rf ~/.sculptor && sudo docker system prune -af" +# #alias containers="docker exec -it $(docker ps -q | fzf ) bash" +# alias rust-book="rustup doc --book" +# alias yt-audio="yt-dlp --embed-metadata --embed-thumbnail -t mp3 $1" +# alias favorite="find ~/syncing/music -type f | fzf >> ~/syncing/music/favorites.m3u" # this is shit. # tmux is not good software. @@ -216,46 +214,57 @@ alias favorite="find ~/syncing/music -type f | fzf >> ~/syncing/music/favorites. #alias jb="fg %$(jobs | fzf | grep -oP '^\[\K[0-9]+')" -alias print-today="date +%Y-%m-%d" - -message() { - ( - cd "/home/andrew/gitRepos/personal-notes" || exit - vim "messages" - ) -} +# alias print-today="date +%Y-%m-%d" + +# message() { +# ( +# cd "/home/andrew/gitRepos/personal-notes" || exit +# vim "messages" +# ) +# } +# +# +# website() { +# ( +# cd "/home/andrew/personal-files/web" || exit +# MONTH=$(date "+%Y-%m") +# mkdir -p $MONTH +# cd $MONTH || exit +# vim . +# ) +# } +# +# today() { +# ( +# cd "/home/andrew/gitRepos/personal-notes" || exit +# PRIOR=$(ls daily/ | tail -n 1 | sed 's/\.md//g' || date -d "1 day ago" +%Y-%m-%d) +# TODAY=$(date +%Y-%m-%d) +# mkdir -p daily +# +# # if the file exists, do nothing +# # if it doesn't exist, copy yesterday's for continuity of todolist +# # TODO: Is this the best way to do this or should each day be irrespective of the prior, +# # keeping a singular top level todo list for things I don't plan to do in a given day? +# # uncertain. +# +# ls daily/$TODAY.md || cp daily/$PRIOR.md daily/$TODAY.md +# vim daily/$TODAY.md +# ) +# } +# +# # for ghidra +# export _JAVA_AWT_WM_NONREPARENTING=1 +# just in case I ever almost forget. +go telemetry off -website() { - ( - cd "/home/andrew/personal-files/web" || exit - MONTH=$(date "+%Y-%m") - mkdir -p $MONTH - cd $MONTH || exit - vim . - ) -} -today() { - ( - cd "/home/andrew/gitRepos/personal-notes" || exit - PRIOR=$(ls daily/ | tail -n 1 | sed 's/\.md//g' || date -d "1 day ago" +%Y-%m-%d) - TODAY=$(date +%Y-%m-%d) - mkdir -p daily - - # if the file exists, do nothing - # if it doesn't exist, copy yesterday's for continuity of todolist - # TODO: Is this the best way to do this or should each day be irrespective of the prior, - # keeping a singular top level todo list for things I don't plan to do in a given day? - # uncertain. - - ls daily/$TODAY.md || cp daily/$PRIOR.md daily/$TODAY.md - vim daily/$TODAY.md - ) -} +# BEGIN opam configuration +# This is useful if you're using opam as it adds: +# - the correct directories to the PATH +# - auto-completion for the opam binary +# This section can be safely removed at any time if needed. -# for ghidra -export _JAVA_AWT_WM_NONREPARENTING=1 +test -r '/home/andrew/.opam/opam-init/init.sh' && . '/home/andrew/.opam/opam-init/init.sh' > /dev/null 2> /dev/null || true +# END opam configuration -# just in case I ever almost forget. -go telemetry off