summaryrefslogtreecommitdiff
path: root/dotfiles/system/.bashrc.d/aliases.sh
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-01-26 16:57:37 -0600
committerCraig Jennings <c@cjennings.net>2026-01-26 16:57:37 -0600
commit7d490453085ae084ce0e3875952eae1d3ad7b1ab (patch)
treed6f76ded02d541107271dc2b04cac34435c81a26 /dotfiles/system/.bashrc.d/aliases.sh
parentfeb8dfaae9b0172c9d24e7e0d115754a467b4627 (diff)
refactor(shell): reorganize shell config for proper separation
Restructure shell configuration to follow standard conventions: - .profile: Environment variables only (POSIX compatible) - .bash_profile: NEW - sources .profile and .bashrc for login shells - .bashrc: Bash-specific settings, sources .bashrc.d/ - .zshrc: Zsh-specific settings, sources .zshrc.d/ New modular directories: - .bashrc.d/: aliases, emacs, fzf, git, media, utilities - .zshrc.d/: same as bashrc.d plus arch-downgrade (zsh-only) - .profile.d/: reduced to env-only files (display, framework, auto-tmux) Fixes: - Remove duplicate .profile sourcing in .bashrc - Remove broken XDG_CURRENT_DESKTOP=GNOME line from display.sh - Move aliases/functions from .profile to appropriate .d/ directories - Shell-specific init (zoxide, fzf) now in .bashrc/.zshrc directly - FreeBSD bindkey fix now in .zshrc directly Also adds CLAUDE.md session context file. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'dotfiles/system/.bashrc.d/aliases.sh')
-rw-r--r--dotfiles/system/.bashrc.d/aliases.sh91
1 files changed, 91 insertions, 0 deletions
diff --git a/dotfiles/system/.bashrc.d/aliases.sh b/dotfiles/system/.bashrc.d/aliases.sh
new file mode 100644
index 0000000..28c0f3f
--- /dev/null
+++ b/dotfiles/system/.bashrc.d/aliases.sh
@@ -0,0 +1,91 @@
+# aliases.sh
+# Craig Jennings <c@cjennings.net>
+# Shell aliases - works in both bash and zsh
+
+# =============================================================================
+# Directory Navigation
+# =============================================================================
+alias cdot="cd ~/code/archsetup/dotfiles"
+alias cdpf="cd ~/projects/finances/"
+alias cdpj="cd ~/projects/jr-estate/"
+alias cdpd="cd ~/projects/documents/"
+
+# =============================================================================
+# File Listing (exa)
+# =============================================================================
+alias ls="exa --group-directories-first"
+alias l="exa -lhF --group-directories-first"
+alias ll="exa -lhAF --group-directories-first"
+alias lt="exa -lthAF --group-directories-first"
+
+# =============================================================================
+# File Operations
+# =============================================================================
+alias mkd="mkdir -pv"
+alias open="xdg-open"
+alias linkdel="find . -type l ! -exec test -d {} \; -delete"
+alias linkfind="find . -type l ! -exec test -d {} \; -print"
+
+# =============================================================================
+# System Administration
+# =============================================================================
+alias df='dfc -p /dev/'
+alias ducks='du -cksh * | sort -rh | head -n11'
+alias ntop="sudo bandwhich"
+alias ptop="sudo powertop"
+alias running_services='systemctl list-units --type=service --state=running'
+alias ssn="sudo shutdown now"
+alias boot2bios="sudo systemctl reboot --firmware-setup"
+alias backup='sudo rsyncshot backup 1000'
+alias sysinfo='sudo inxi -v 8 -a -xxxA -xxxB -xxxC -xxxD -xxxG -xxxI -xxxm -xxxN -xxxR -xxxS -xxx --usb -d -I -pl -n -s --slots'
+alias timeshift='sudo timeshift-gtk'
+alias sysupgrade="topgrade"
+
+# =============================================================================
+# Network
+# =============================================================================
+alias myip='curl -4 https://chroot-me.in/ip/ 2>/dev/null || w3m -4 -dump https://chroot-me.in/ip'
+alias whereami="curl ipinfo.io"
+alias speedtest="speedtest-go"
+
+# =============================================================================
+# Applications
+# =============================================================================
+alias vim="nvim"
+alias et="emacs -nw"
+alias weather="wego"
+alias crm="tickrs -s CRM"
+alias handbrake="ghb"
+alias smerge="/usr/bin/smerge"
+alias stext="/opt/sublime_text/sublime_text"
+alias steam="flatpak run com.valvesoftware.Steam"
+alias xterm="xterm -ti 340"
+
+# =============================================================================
+# Stow (dotfiles management)
+# =============================================================================
+alias stow="stow --target=/home/cjennings"
+
+# =============================================================================
+# Ranger (file manager)
+# =============================================================================
+alias cdr='. ranger'
+alias r='. ranger'
+
+# =============================================================================
+# Programming
+# =============================================================================
+alias cc="gcc -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wconversion -Wextra -std=c2x -pedantic"
+alias gdbx="gdb --batch --ex r --ex bt --ex q --args"
+
+# =============================================================================
+# Claude Code
+# =============================================================================
+alias hey='claude "Read ./docs/protocols.org and ./docs/NOTES.org, follow their instructions, then run session startup workflow."'
+
+# =============================================================================
+# Phenomenology RAG (ollama/deepseek)
+# =============================================================================
+phenom() {
+ aichat --rag phenom -m ollama:deepseek-r1:70b "$@"
+}