73 lines
2.6 KiB
Plaintext
73 lines
2.6 KiB
Plaintext
#
|
|
# ██ ██ ██
|
|
# ░██ ░██ ░██
|
|
# ██████░██ █████ ░██ ░██ ██████ █████
|
|
# ██░░░░ ░██████ ██░░░██ ░██ ░██░░██░░█ ██░░░██
|
|
# ░░█████ ░██░░░██░███████ ░██ ░██ ░██ ░ ░██ ░░
|
|
# ░░░░░██░██ ░██░██░░░░ ░██ ░██ ░██ ░██ ██
|
|
# ██████ ░██ ░██░░██████ ███ ███░███ ░░█████
|
|
# ░░░░░░ ░░ ░░ ░░░░░░ ░░░ ░░░ ░░░ ░░░░░
|
|
|
|
#~~~~~~~~~
|
|
# General
|
|
#~~~~~~~~~
|
|
source "$HOME/.profile"
|
|
|
|
#~~~~~~~~~
|
|
# Aliases
|
|
#~~~~~~~~~
|
|
alias vi='nvim'
|
|
alias vim='nvim'
|
|
alias suvi='sudo -E nvim'
|
|
|
|
alias owo='yay --editmenu --nodiffmenu --save'
|
|
alias uwu="yay -Slq | fzf -m --preview 'yay -Si {1}' | yay -S -"
|
|
|
|
alias pass='keepassxc-cli clip ~/Passwords/keepass.kdbx'
|
|
alias torrent='transmission-cli'
|
|
alias ascii='figlet'
|
|
alias ytdl-audio='youtube-dl -i --extract-audio --audio-format opus'
|
|
alias mirrors='sudo reflector --latest 200 --protocol http --protocol https --sort rate --save /etc/pacman.d/mirrorlist'
|
|
alias copy='xclip -selection clipboard'
|
|
alias battery='upower -i /org/freedesktop/UPower/devices/battery_BAT0'
|
|
|
|
# git
|
|
alias ga='git add'
|
|
alias gc='git commit'
|
|
alias gp='git push'
|
|
alias gpom='git push origin master'
|
|
alias gl='git log'
|
|
alias gpu='git pull'
|
|
alias gs='git status'
|
|
alias gr='git rm -f'
|
|
|
|
#~~~~~~~~~~~~~~~~~
|
|
# Commands Colors
|
|
#~~~~~~~~~~~~~~~~~
|
|
alias ls='ls --color=auto'
|
|
alias ip='grc ip'
|
|
alias ping='grc ping'
|
|
alias ps='grc ps'
|
|
export SUDO_PROMPT='sudo -p "$(printf "\033[0;31m")[ sudo ]$(printf "\033[0m"): "'
|
|
|
|
# man
|
|
man() {
|
|
LESS_TERMCAP_md=$'\e[01;31m' \
|
|
LESS_TERMCAP_me=$'\e[0m' \
|
|
LESS_TERMCAP_se=$'\e[0m' \
|
|
# LESS_TERMCAP_so=$'\e[01;44;33m' \
|
|
LESS_TERMCAP_ue=$'\e[0m' \
|
|
LESS_TERMCAP_us=$'\e[01;32m' \
|
|
command man "$@"
|
|
}
|
|
|
|
# less
|
|
export LESS=-R
|
|
export LESS_TERMCAP_mb=$'\E[1;31m' # begin blink
|
|
export LESS_TERMCAP_md=$'\E[1;36m' # begin bold
|
|
export LESS_TERMCAP_me=$'\E[0m' # reset bold/blink
|
|
#export LESS_TERMCAP_so=$'\E[01;44;33m' # begin reverse video
|
|
export LESS_TERMCAP_se=$'\E[0m' # reset reverse video
|
|
export LESS_TERMCAP_us=$'\E[1;32m' # begin underline
|
|
export LESS_TERMCAP_ue=$'\E[0m' # reset underline
|