Rebuild shellrc
This commit is contained in:
parent
183f5e8e23
commit
1f480efd3e
123
.config/shellrc
123
.config/shellrc
@ -1,99 +1,58 @@
|
|||||||
#
|
#!/bin/zsh
|
||||||
# ██ ██ ██
|
|
||||||
# ░██ ░██ ░██
|
|
||||||
# ██████░██ █████ ░██ ░██ ██████ █████
|
|
||||||
# ██░░░░ ░██████ ██░░░██ ░██ ░██░░██░░█ ██░░░██
|
|
||||||
# ░░█████ ░██░░░██░███████ ░██ ░██ ░██ ░ ░██ ░░
|
|
||||||
# ░░░░░██░██ ░██░██░░░░ ░██ ░██ ░██ ░██ ██
|
|
||||||
# ██████ ░██ ░██░░██████ ███ ███░███ ░░█████
|
|
||||||
# ░░░░░░ ░░ ░░ ░░░░░░ ░░░ ░░░ ░░░ ░░░░░
|
|
||||||
|
|
||||||
#~~~~~~~~~
|
|
||||||
# General
|
|
||||||
#~~~~~~~~~
|
|
||||||
source "$HOME/.profile"
|
source "$HOME/.profile"
|
||||||
|
|
||||||
#~~~~~~~~~
|
|
||||||
# Aliases
|
# Aliases
|
||||||
#~~~~~~~~~
|
alias \
|
||||||
# nvim
|
v='nvim' \
|
||||||
alias v='nvim'
|
vi='nvim' \
|
||||||
alias vi='nvim'
|
vim='nvim' \
|
||||||
alias vim='nvim'
|
suvi='sudo -E nvim'
|
||||||
alias nano='nvim'
|
|
||||||
alias emacs='nvim'
|
|
||||||
alias code='nvim'
|
|
||||||
alias suvi='sudo -E nvim'
|
|
||||||
|
|
||||||
# ls / tree
|
alias \
|
||||||
alias l='ls'
|
l='ls' \
|
||||||
alias ll='ls -l'
|
ll='ls -l' \
|
||||||
alias la='ls -a'
|
la='ls -a' \
|
||||||
alias lal='ls -al'
|
lal='ls -al'
|
||||||
alias tr='tree -L 2'
|
|
||||||
|
|
||||||
# package managers
|
alias \
|
||||||
alias owo='pacman'
|
owo='pacman' \
|
||||||
alias sowo='sudo pacman'
|
sowo='sudo pacman' \
|
||||||
alias yay='yay --editmenu --nodiffmenu --save'
|
yay='yay --editmenu --nodiffmenu --save'
|
||||||
|
|
||||||
# youtube-dl
|
alias \
|
||||||
alias ytdl-audio='youtube-dl -i -f bestaudio -o "%(title)s.%(ext)s" -4'
|
btw='git --git-dir=$HOME/dev/botfiles/ --work-tree=$HOME' \
|
||||||
alias ytdl-opus='youtube-dl -i --extract-audio --audio-format opus -o "%(title)s.%(ext)s" -4'
|
ga='git add' \
|
||||||
alias yt-video='youtube-dl -f bestvideo -o "%(title)s.%(ext)s" -4'
|
gc='git commit -S' \
|
||||||
alias yt-thumbnail='youtube-dl --write-thumbnail --skip-download -o "%(title)s.%(ext)s" -4'
|
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 \
|
||||||
alias btw='git --git-dir=$HOME/dev/botfiles/ --work-tree=$HOME'
|
s='sudo ' \
|
||||||
alias ga='git add'
|
sudo='sudo '
|
||||||
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'
|
|
||||||
|
|
||||||
# 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)"; }
|
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 copy='xclip -sel clip'
|
||||||
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'
|
|
||||||
|
|
||||||
# 4fun
|
|
||||||
alias dog='cat'
|
|
||||||
alias nyancat='lolcat'
|
|
||||||
alias woman='man'
|
|
||||||
alias tak='yes'
|
|
||||||
|
|
||||||
#~~~~~~~~~~~~~~~~~
|
|
||||||
# Commands Colors
|
# Commands Colors
|
||||||
#~~~~~~~~~~~~~~~~~
|
alias ls='ls --color=auto' \
|
||||||
alias ls='ls --color=auto'
|
ip='grc ip' \
|
||||||
alias ip='grc ip'
|
ping='grc ping' \
|
||||||
alias ping='grc ping'
|
ps='grc ps'
|
||||||
alias ps='grc ps'
|
|
||||||
export SUDO_PROMPT="$(printf "\033[0;31m")[ sudo ]$(printf "\033[0m"): "
|
export SUDO_PROMPT="$(printf "\033[0;31m")[ sudo ]$(printf "\033[0m"): "
|
||||||
|
|
||||||
# man
|
|
||||||
man() {
|
man() {
|
||||||
LESS_TERMCAP_md=$'\e[01;31m' \
|
LESS_TERMCAP_md=$'\e[01;31m' \
|
||||||
LESS_TERMCAP_me=$'\e[0m' \
|
LESS_TERMCAP_me=$'\e[0m' \
|
||||||
@ -104,12 +63,10 @@ man() {
|
|||||||
command man "$@"
|
command man "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
# less
|
|
||||||
export LESS=-R
|
export LESS=-R
|
||||||
export LESS_TERMCAP_mb=$'\E[1;31m' # begin blink
|
export LESS_TERMCAP_mb=$'\E[1;31m' # begin blink
|
||||||
export LESS_TERMCAP_md=$'\E[1;36m' # begin bold
|
export LESS_TERMCAP_md=$'\E[1;36m' # begin bold
|
||||||
export LESS_TERMCAP_me=$'\E[0m' # reset bold/blink
|
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_se=$'\E[0m' # reset reverse video
|
||||||
export LESS_TERMCAP_us=$'\E[1;32m' # begin underline
|
export LESS_TERMCAP_us=$'\E[1;32m' # begin underline
|
||||||
export LESS_TERMCAP_ue=$'\E[0m' # reset underline
|
export LESS_TERMCAP_ue=$'\E[0m' # reset underline
|
||||||
|
Loading…
x
Reference in New Issue
Block a user