From 284ea2c1115f3546568a9eb1856280fe64801110 Mon Sep 17 00:00:00 2001 From: BardofSprites <89086143+BardofSprites@users.noreply.github.com> Date: Thu, 17 Jul 2025 10:26:50 -0400 Subject: simple shell env changes --- shell/.bash_aliases | 19 +++++++++++++++++++ shell/.bashrc | 3 +++ 2 files changed, 22 insertions(+) (limited to 'shell') diff --git a/shell/.bash_aliases b/shell/.bash_aliases index 82d798b..1731413 100644 --- a/shell/.bash_aliases +++ b/shell/.bash_aliases @@ -9,6 +9,12 @@ alias ta="tmux attach" alias ts="tmux-sessionizer" alias rec="ffmpeg -f x11grab -s 1920x1080 -i :0.0+0+0 out.mp4" +# smart launcher aliases +alias p="smart-launcher ~/Pictures/" +alias r="smart-launcher ~/Repositories/" +alias d="smart-launcher ~/Documents/" +alias c="smart-launcher ~/Code/" + function _recentimages() { find "$1" -type f \( -iname "*.jpg" -o -iname "*.png" -o -iname "*.jpeg" -o -iname "*.gif" -o -iname "*.bmp" \) -printf "%T@ %p\n" | sort -nr | @@ -17,6 +23,19 @@ function _recentimages() { alias recentimages='_recentimages' +function xrdb-theme() { + local theme_file + theme_file=$(find ~/.Xresources.d/ -type l | fzf) + + if [[ -n "$theme_file" ]]; then + xrdb -merge "$theme_file" + echo "Loaded theme: $(basename "$theme_file")" + else + echo "No theme selected." + fi +} + + alias checkmail="$HOME/.local/bin/scripts/checkmail" # gentoo related alias sysupdate="sudo eix-sync" diff --git a/shell/.bashrc b/shell/.bashrc index 804da8b..84f7853 100644 --- a/shell/.bashrc +++ b/shell/.bashrc @@ -5,10 +5,13 @@ export TERMINAL="/usr/local/bin/st" export PATH="$HOME/.local/bin:$PATH" export PATH="$HOME/.local/bin/scripts/:$PATH" export PATH="$HOME/.local/bin/scripts/perl/:$PATH" +export PATH="$HOME/.local/bin/scripts/status/:$PATH" export PATH="$HOME/.cargo/bin/:$PATH" export PATH="$HOME/opt/:$PATH" export PKG_CONFIG_PATH="$HOME/opt/raylib/lib/pkgconfig/:$PKG_CONFIG_PATH" export PATH="$HOME/.nimble/bin":$PATH +PLAN9=/home/bard/Repositories/plan9port export PLAN9 +PATH=$PATH:$PLAN9/bin export PATH source "$HOME/.config/fzf/key-bindings.bash" -- cgit v1.2.3