38 lines
951 B
Plaintext
38 lines
951 B
Plaintext
|
[[ $- != *i* ]] && return
|
||
|
|
||
|
# colors
|
||
|
alias diff='diff --color=auto'
|
||
|
alias dmesg='dmesg --color=auto'
|
||
|
alias dir='dir --color=auto'
|
||
|
alias egrep='egrep --color=auto'
|
||
|
alias grep='grep --color=auto'
|
||
|
alias fgrep='fgrep --color=auto'
|
||
|
alias ip='ip -color=auto'
|
||
|
alias ls='ls --color=auto'
|
||
|
alias ncdu='ncdu --color dark -rr'
|
||
|
alias tree='tree -C'
|
||
|
alias vdir='vdir --color=auto'
|
||
|
|
||
|
# rewrites
|
||
|
alias cp='cp -i'
|
||
|
alias mv='mv -i'
|
||
|
alias vlock='vlock -a'
|
||
|
alias wget='wget -q --show-progress'
|
||
|
|
||
|
# scripts
|
||
|
alias dbc='~/.scripts/dbc'
|
||
|
alias pass='~/.scripts/pass'
|
||
|
|
||
|
# random
|
||
|
alias up='sudo mount -o remount,rw /boot && sudo xbps-install -Su && sudo vkpurge rm all && sudo mount -o remount,ro /boot'
|
||
|
|
||
|
rnd() {
|
||
|
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w $1 | head -n 1
|
||
|
}
|
||
|
|
||
|
if [ "$(id -u)" -eq 0 ]; then
|
||
|
export PS1="\e[38;5;237m\T\e[0m \e[38;5;196m\u@\h\e[0m \e[38;5;226m\w \e[0m: "
|
||
|
else
|
||
|
export PS1="\e[38;5;237m\T\e[0m \e[38;5;41m\u@\h\e[0m \e[38;5;69m\w \e[0m: "
|
||
|
fi
|