Skip to content

Instantly share code, notes, and snippets.

@malandro-sv
Last active March 29, 2026 07:45
Show Gist options
  • Select an option

  • Save malandro-sv/755c6021e4ffac01dc1237c41af8dc94 to your computer and use it in GitHub Desktop.

Select an option

Save malandro-sv/755c6021e4ffac01dc1237c41af8dc94 to your computer and use it in GitHub Desktop.
# GistID:bc8a1e7243c0ad8b941955ec00dc618e
# ~/.bashrc - 6/28/2023
# last update: 3/29/2026
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
complete -cf sudo
alias scat='sudo cat'
alias suvim='sudo vim'
alias shead='sudo head'
alias stail='sudo tail'
alias ls='ls --color=auto'
#alias ccat='pigmentize -g'
#alias poff='sudo poweroff'
alias grep='grep --color=auto'
alias lsm='ls -al --color=auto --block-size=M'
alias alsaequal='alsamixer -D equal'
alias alsi='alsi --bold=blue --color=cyan -t'
alias screenfetch='clear; echo; echo; screenfetch -E -d\
"-host;-gpu;-uptime;-res;gtk;-pkgs;-shell" -w'
#alias wifi='./scripts/wireless/w'
#alias optirun='optirun --no-failsafe'
#alias mac='sudo macchanger -r enp2s0'
#alias brite='./scripts/display/briteness'
#alias duald='./scripts/display/dual_disp'
#alias f-optirun='optirun --no-failsafe firefox'
# export PS1="\[\033[38;5;58m\]\u\[\033[38;5;59m\].\[\033[38;5;58m\]\h,\[\033[38;5;15m\]\[\033[38;5;94m\]\d\[\033[38;5;15m\]\[\033[38;5;94m\]@\t.\[\033[38;5;15m\]\[\033[38;5;202m\]\w:\[$(tput sgr0)\] "
export PS1="\[\033[38;5;58m\]\u\[\033[38;5;59m\].\[\033[38;5;58m\]\h\[\033[38;5;15m\]\[\033[38;5;94m\] \t \[\033[38;5;15m\]\[\033[38;5;202m\]\w:\[$(tput sgr0)\] "
# python -m venv within dev/python/ & symlink it to ~/.venv_rc.py
# ln -s lonetwin/pythonrc into ~/.pythonrc first; then:
export PYTHONSTARTUP=~/.pythonrc
#export PYTHONSTARTUP="$HOME/.pythonrc"
export VENV_RC="$HOME/.venv_rc.py"
# aug 4th, 2025: activate virtual_env from anywhere:
alias activate='source $HOME/dev/pys/venv/bin/activate'
man() {
env LESS_TERMCAP_mb=$'\E[01;31m' \
LESS_TERMCAP_md=$'\E[01;38;5;74m' \
LESS_TERMCAP_me=$'\E[0m' \
LESS_TERMCAP_se=$'\E[0m' \
LESS_TERMCAP_so=$'\E[38;5;246m' \
LESS_TERMCAP_ue=$'\E[0m' \
LESS_TERMCAP_us=$'\E[04;38;5;146m' \
man "$@"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment