Skip to content

Instantly share code, notes, and snippets.

@malandro-sv
Last active May 20, 2020 17:47
Show Gist options
  • Select an option

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

Select an option

Save malandro-sv/bc8a1e7243c0ad8b941955ec00dc618e to your computer and use it in GitHub Desktop.
:D
# GistID:bc8a1e7243c0ad8b941955ec00dc618e
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
complete -cf sudo
alias grep='grep --color=auto'
alias ls='ls --color=auto'
alias lsm='ls -al --color=auto --block-size=M'
alias suvim='sudo vim'
alias scat='sudo cat'
alias shead='sudo head'
alias stail='sudo tail'
alias mac='sudo macchanger -r enp2s0'
alias poff='sudo poweroff'
alias optirun='optirun --no-failsafe'
alias alsaequal='alsamixer -D equal'
alias f-optirun='optirun --no-failsafe firefox'
alias alsi='alsi --bold=blue --color=cyan -t'
alias brite='./scripts/display/briteness'
alias duald='./scripts/display/dual_disp'
alias wifi='./scripts/wireless/w'
alias ccat='pigmentize -g'
# 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)\] "
echo "export PYTHONSTARTUP=~/.pythonrc" >> ~/.profile
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' \
LESS_TERMCAP_so=$'\E[01;33;03;40m'\
man "$@"
}
# export PAGER="most"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment