53 lines
2.1 KiB
Bash
53 lines
2.1 KiB
Bash
stty -ixon
|
|
shopt -s autocd #Allows you to cd into directory merely by typing the directory name.
|
|
HISTSIZE= HISTFILESIZE=
|
|
|
|
# Setting Bash prompt. Capitalizes username and host if root user (my root user uses this same config file).
|
|
if [ "$EUID" -ne 0 ]
|
|
then export PS1="\[$(tput bold)\]\[$(tput setaf 1)\][\[$(tput setaf 3)\]\u\[$(tput setaf 2)\]@\[$(tput setaf 4)\]\h \[$(tput setaf 5)\]\W\[$(tput setaf 1)\]]\[$(tput setaf 7)\]\\$ \[$(tput sgr0)\]"
|
|
else export PS1="\[$(tput bold)\]\[$(tput setaf 1)\][\[$(tput setaf 3)\]ROOT\[$(tput setaf 2)\]@\[$(tput setaf 4)\]$(hostname | awk '{print toupper($0)}') \[$(tput setaf 5)\]\W\[$(tput setaf 1)\]]\[$(tput setaf 7)\]\\$ \[$(tput sgr0)\]"
|
|
fi
|
|
|
|
# System Maintainence
|
|
alias mw="~/.config/mutt/mutt-wizard.sh"
|
|
alias muttwizard="~/.config/mutt/mutt-wizard.sh"
|
|
alias progs="(pacman -Qet && pacman -Qm) | sort -u" # List programs I've installed
|
|
alias orphans="pacman -Qdt" # List orphan programs
|
|
alias sdn="sudo shutdown now"
|
|
alias psref="gpg-connect-agent RELOADAGENT /bye" # Refresh gpg
|
|
|
|
# Some aliases
|
|
alias p="sudo pacman"
|
|
alias SS="sudo systemctl"
|
|
alias v="vim"
|
|
alias sv="sudo vim"
|
|
alias r="ranger"
|
|
alias sr="sudo ranger"
|
|
alias ka="killall"
|
|
alias g="git"
|
|
alias trem="transmission-remote"
|
|
alias mkd="mkdir -pv"
|
|
alias rf="source ~/.bashrc"
|
|
alias ref="shortcuts.sh && source ~/.bashrc" # Refresh shortcuts manually and reload bashrc
|
|
alias bw="wal -i ~/.config/wall.png" # Rerun pywal
|
|
|
|
# Adding color
|
|
alias ls='ls -hN --color=auto --group-directories-first'
|
|
alias crep="grep --color=always" # Color grep - highlight desired sequence.
|
|
alias ccat="highlight --out-format=xterm256" #Color cat - print file with syntax highlighting.
|
|
|
|
# Internet
|
|
alias yt="youtube-dl --add-metadata -ic" # Download video link
|
|
alias yta="youtube-dl --add-metadata -xic" # Download only audio
|
|
alias YT="youtube-viewer"
|
|
alias ethspeed="speedometer -r enp0s25"
|
|
alias wifispeed="speedometer -r wlp3s0"
|
|
alias starwars="telnet towel.blinkenlights.nl"
|
|
|
|
# TeX
|
|
alias Txa="cp ~/Documents/LaTeX/article.tex"
|
|
alias Txs="cp ~/Documents/LaTeX/beamer.tex"
|
|
alias Txh="cp ~/Documents/LaTeX/handout.tex"
|
|
alias TC='texclear'
|
|
|
|
source ~/.shortcuts
|