Skip to content

Instantly share code, notes, and snippets.

@malandro-sv
Created June 28, 2023 21:50
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
# 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)\] "
export PYTHONSTARTUP=~/.pythonrc
# loneTwin's awesome gist
# https://gist.github.com/lonetwin/5902720#file-pythonrc-py
#export PYTHONSTARTUP="~/data/dev/py/lonetwin/pythonrc.py"
#export PATH="$PATH:/home/namlah/.local/bin"
# Feb 4th, 2023: I updated the path where this file is
# to another directory. this got me an error message at the
# python shell saying FileNotFoundError: PYTHONSTARTUP
# wasn't found. I fixed that by copying the pythonrc.py
# from lonetwin's directory, to ~/.pythonrc
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