From 6984c067c7651d7c12ac102ebbbcee73ed62e724 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 8 May 2025 19:10:25 -0500 Subject: adding linux version of profile for comparison/additions --- dotfiles/system/.profile_linux | 105 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 dotfiles/system/.profile_linux (limited to 'dotfiles') diff --git a/dotfiles/system/.profile_linux b/dotfiles/system/.profile_linux new file mode 100644 index 0000000..e62d2b8 --- /dev/null +++ b/dotfiles/system/.profile_linux @@ -0,0 +1,105 @@ +# .profile +# Craig Jennings + +# if connecting via Emacs tramp, simplify prompt for easy identification. +# keeping this statement at the top of the file prevent PS1 modifications +if [ "$TERM" = "tramp" ] || [ "$TERM" = "dumb" ]; then + PS1='$ ' +fi + +## +## ENVIRONMENT VARIABLES +## + +# Locale +export LANG=en_US.UTF-8 +export LANGUAGE=en_US.UTF-8 +export LC_CTYPE=en_US.UTF-8 +export LC_ALL=en_US.UTF-8 + +# General +export LANGUAGE=en_US +export GPG_TTY="$(tty)" + +# Path +export PATH="$PATH:$HOME/.local/bin:/usr/sbin" +[ -d "$HOME/.local/share/gem/ruby/3.0.0/bin" ]; PATH="$PATH:$HOME/.local/share/gem/ruby/3.0.0/bin" +[ -d "$HOME/.cargo/bin" ]; PATH="$PATH:$HOME/.cargo/bin" +export PATH=$PATH:~/.config/rofi/scripts + +# Editor +export ALTERNATE_EDITOR="" +export EDITOR="$(which emacs)" +export SUDO_EDITOR="$(which vi)" + +# Browser +export BROWSER="$(which firefox)" +# export BROWSER="$(which google-chrome-stable)" +# export BROWSER="$(which librewolf)" + +# Terminal +export COLORTERM=truecolor +#export TERM="vt100" +export TERM="st-256color" +export TERMINAL="$(which st)" +export VISUAL="$(which em)" + +# XDG +export XDG_CONFIG_HOME="$HOME/.config/" +export XDG_CURRENT_DESKTOP=dwm +export XDG_SESSION_TYPE=x11 +export XDG_DATA_DIRS="$XDG_DATA_DIRS:/var/lib/flatpak/exports/share:$HOME/.local/share/flatpak/exports/share:/usr/share" +if [ -z "$XDG_RUNTIME_DIR" ]; then + export XDG_RUNTIME_DIR="$HOME/.local/xdg/runtime" + if [ ! -d "$XDG_RUNTIME_DIR" ]; then + mkdir -p "$XDG_RUNTIME_DIR" + chmod 0700 "$XDG_RUNTIME_DIR" + fi +fi + +## +## ALIASES +## + +# general software aliases +alias steam="flatpak run com.valvesoftware.Steam" +alias crm="tickrs" +alias weather="curl -s wttr.in" +alias handbrake="ghb" +alias stext="/opt/sublime_text/sublime_text" +alias smerge="/usr/bin/smerge" +alias vim="nvim" +alias xterm="xterm -ti 340" + +# general utility +alias timeshift='sudo timeshift-gtk' +alias df='dfc -p /dev/' +alias ducks='du -cksh * | sort -rh | head -n11' +alias l="ls -lhF" +alias lt="ls -lthAF" +alias ll="ls -lhAF" +alias mkd="mkdir -pv" +alias mount="sudo /usr/bin/mount -t auto -o rw,umask=0000" +alias myip='curl -4 https://chroot-me.in/ip/ 2> /dev/null || w3m -4 -dump https://chroot-me.in/ip' +alias open="xdg-open" +alias ptop="sudo powertop" +alias speedtest="speedtest-go" +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 ' + +# 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" + +# ranger +# when exiting ranger, leave the prompt at the destination +alias cdr='. ranger' +alias r='. ranger' + +# source sh files in .profile.d +PROFILE_D="$HOME/.profile.d/" +if [ -d "$PROFILE_D" ]; then + for file in $(find "$PROFILE_D" -name "*.sh"); do + source "$file" + done +fi -- cgit v1.2.3