Rebuild shellrc
This commit is contained in:
parent
3907db9f34
commit
1507424ff5
123
.config/shellrc
123
.config/shellrc
@ -1,99 +1,58 @@
|
||||
#
|
||||
# ██ ██ ██
|
||||
# ░██ ░██ ░██
|
||||
# ██████░██ █████ ░██ ░██ ██████ █████
|
||||
# ██░░░░ ░██████ ██░░░██ ░██ ░██░░██░░█ ██░░░██
|
||||
# ░░█████ ░██░░░██░███████ ░██ ░██ ░██ ░ ░██ ░░
|
||||
# ░░░░░██░██ ░██░██░░░░ ░██ ░██ ░██ ░██ ██
|
||||
# ██████ ░██ ░██░░██████ ███ ███░███ ░░█████
|
||||
# ░░░░░░ ░░ ░░ ░░░░░░ ░░░ ░░░ ░░░ ░░░░░
|
||||
#!/bin/zsh
|
||||
|
||||
#~~~~~~~~~
|
||||
# General
|
||||
#~~~~~~~~~
|
||||
source "$HOME/.profile"
|
||||
|
||||
#~~~~~~~~~
|
||||
# Aliases
|
||||
#~~~~~~~~~
|
||||
# nvim
|
||||
alias v='nvim'
|
||||
alias vi='nvim'
|
||||
alias vim='nvim'
|
||||
alias nano='nvim'
|
||||
alias emacs='nvim'
|
||||
alias code='nvim'
|
||||
alias suvi='sudo -E nvim'
|
||||
alias \
|
||||
v='nvim' \
|
||||
vi='nvim' \
|
||||
vim='nvim' \
|
||||
suvi='sudo -E nvim'
|
||||
|
||||
# ls / tree
|
||||
alias l='ls'
|
||||
alias ll='ls -l'
|
||||
alias la='ls -a'
|
||||
alias lal='ls -al'
|
||||
alias tr='tree -L 2'
|
||||
alias \
|
||||
l='ls' \
|
||||
ll='ls -l' \
|
||||
la='ls -a' \
|
||||
lal='ls -al'
|
||||
|
||||
# package managers
|
||||
alias owo='pacman'
|
||||
alias sowo='sudo pacman'
|
||||
alias yay='yay --editmenu --nodiffmenu --save'
|
||||
alias \
|
||||
owo='pacman' \
|
||||
sowo='sudo pacman' \
|
||||
yay='yay --editmenu --nodiffmenu --save'
|
||||
|
||||
# youtube-dl
|
||||
alias ytdl-audio='youtube-dl -i -f bestaudio -o "%(title)s.%(ext)s" -4'
|
||||
alias ytdl-opus='youtube-dl -i --extract-audio --audio-format opus -o "%(title)s.%(ext)s" -4'
|
||||
alias yt-video='youtube-dl -f bestvideo -o "%(title)s.%(ext)s" -4'
|
||||
alias yt-thumbnail='youtube-dl --write-thumbnail --skip-download -o "%(title)s.%(ext)s" -4'
|
||||
alias \
|
||||
btw='git --git-dir=$HOME/dev/botfiles/ --work-tree=$HOME' \
|
||||
ga='git add' \
|
||||
gc='git commit -S' \
|
||||
gp='git push' \
|
||||
gpom='git push origin master' \
|
||||
gch='git checkout' \
|
||||
gl='git log' \
|
||||
gpu='git pull' \
|
||||
gs='git status' \
|
||||
grm='git rm -f' \
|
||||
gi='git init'
|
||||
|
||||
# git
|
||||
alias btw='git --git-dir=$HOME/dev/botfiles/ --work-tree=$HOME'
|
||||
alias ga='git add'
|
||||
alias gc='git commit -S'
|
||||
alias gp='git push'
|
||||
alias gpom='git push origin master'
|
||||
alias gch='git checkout'
|
||||
alias gl='git log'
|
||||
alias gpu='git pull'
|
||||
alias gs='git status'
|
||||
alias grm='git rm -f'
|
||||
alias gi='git init'
|
||||
alias \
|
||||
s='sudo ' \
|
||||
sudo='sudo '
|
||||
|
||||
# github-cli
|
||||
alias gh-rc='gh repo create --public'
|
||||
alias gh-rcp='gh repo create'
|
||||
alias gh-rv='gh repo view'
|
||||
|
||||
# fzf
|
||||
fdir() { cd "$(find "$HOME" -type d | fzf --layout reverse --height 25)"; }
|
||||
alias \
|
||||
scr='cd ~/.local/bin/scripts' \
|
||||
cfg='cd ~/.config/' \
|
||||
crn='cd ~/.local/bin/cron' \
|
||||
cd..='cd ..'
|
||||
|
||||
# other
|
||||
alias s='sudo '
|
||||
alias sudo='sudo '
|
||||
alias pass='keepassxc-cli clip ~/Passwords/keepass.kdbx'
|
||||
alias torrent='transmission-cli'
|
||||
alias ascii='figlet'
|
||||
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'
|
||||
alias c256='(x=`tput op` y=`printf %76s`;for i in {0..256};do o=00$i;echo -e ${o:${#o}-3:3} `tput setaf $i;tput setab $i`${y// /=}$x;done)'
|
||||
alias ...='cd ~/Dotfiles'
|
||||
alias cd..='cd ..'
|
||||
alias scr='cd ~/.local/bin/scripts'
|
||||
alias copy='xclip -sel clip'
|
||||
|
||||
# 4fun
|
||||
alias dog='cat'
|
||||
alias nyancat='lolcat'
|
||||
alias woman='man'
|
||||
alias tak='yes'
|
||||
|
||||
#~~~~~~~~~~~~~~~~~
|
||||
# Commands Colors
|
||||
#~~~~~~~~~~~~~~~~~
|
||||
alias ls='ls --color=auto'
|
||||
alias ip='grc ip'
|
||||
alias ping='grc ping'
|
||||
alias ps='grc ps'
|
||||
alias ls='ls --color=auto' \
|
||||
ip='grc ip' \
|
||||
ping='grc ping' \
|
||||
ps='grc ps'
|
||||
export SUDO_PROMPT="$(printf "\033[0;31m")[ sudo ]$(printf "\033[0m"): "
|
||||
|
||||
# man
|
||||
man() {
|
||||
LESS_TERMCAP_md=$'\e[01;31m' \
|
||||
LESS_TERMCAP_me=$'\e[0m' \
|
||||
@ -104,12 +63,10 @@ man() {
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user