98 lines
2.0 KiB
Plaintext
Raw Permalink Normal View History

2020-05-13 09:09:01 +02:00
#!/bin/zsh
2020-05-08 20:27:40 +02:00
source "$HOME/.profile"
# Aliases
2020-05-13 09:09:01 +02:00
alias \
v='nvim' \
2021-05-28 16:51:15 +02:00
vi='nvim' \
vim='nvim' \
suvi='sudo -E nvim' \
vifm='vifmrun'
2020-05-08 20:27:40 +02:00
2020-05-13 09:09:01 +02:00
alias \
l='ls' \
2021-05-28 16:51:15 +02:00
ll='ls -l' \
2020-05-13 09:09:01 +02:00
la='ls -a' \
lal='ls -al'
2020-05-08 20:27:40 +02:00
2020-05-13 09:09:01 +02:00
alias \
owo='pacman' \
2021-05-28 16:51:15 +02:00
sowo='sudo pacman' \
yay='yay --editmenu --nodiffmenu --save'
2020-05-08 20:27:40 +02:00
2020-05-13 09:09:01 +02:00
alias \
2020-05-13 09:22:41 +02:00
g='git' \
2021-05-28 16:51:15 +02:00
ga='git add' \
gc='git commit -S' \
gp='git push' \
gpom='git push origin master --tags' \
gch='git checkout' \
gl='git log' \
gpu='git pull' \
gs='git status' \
grm='git rm -f' \
gi='git init' \
gd='git diff' \
2020-05-13 09:22:41 +02:00
btw='git --git-dir=$HOME/dev/botfiles/ --work-tree=$HOME' \
b='btw' \
ba='btw add' \
2021-05-28 16:51:15 +02:00
bc='btw commit -S' \
bp='btw push' \
bpom='btw push origin master' \
bch='btw checkout' \
bl='btw log' \
bpu='btw pull' \
bs='btw status' \
brm='btw rm -f' \
bi='btw init' \
bd='btw diff'
2020-05-26 12:32:21 +02:00
alias lisc='policense -l ISC -s -e git'
2020-05-08 20:27:40 +02:00
2020-05-13 09:09:01 +02:00
alias \
s='sudo ' \
sudo='sudo '
2020-05-08 20:27:40 +02:00
2020-05-11 11:35:20 +02:00
fdir() { cd "$(find "$HOME" -type d | fzf --layout reverse --height 25)"; }
2020-05-13 09:09:01 +02:00
alias \
scr='cd ~/.local/bin/scripts' \
cfg='cd ~/.config/' \
crn='cd ~/.local/bin/cron' \
2020-05-26 19:49:00 +02:00
cd..='cd ..' \
2021-05-28 16:51:15 +02:00
,='cd ~'
2020-05-08 20:27:40 +02:00
alias \
copy='xclip -sel clip' \
2021-05-28 13:09:02 +02:00
rssu='vi ~/.config/newsboat/urls' \
df='df -x tmpfs -x devtmpfs'
2021-05-28 16:51:15 +02:00
copy='xclip -sel clip' \
rssu='vi ~/.config/newsboat/urls'
2020-05-08 20:27:40 +02:00
# Commands Colors
2020-05-13 09:09:01 +02:00
alias ls='ls --color=auto' \
ip='grc ip' \
ping='grc ping' \
ps='grc ps'
2020-05-08 20:27:40 +02:00
export SUDO_PROMPT="$(printf "\033[0;31m")[ sudo ]$(printf "\033[0m"): "
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 "$@"
}
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_se=$'\E[0m' # reset reverse video
export LESS_TERMCAP_us=$'\E[1;32m' # begin underline
export LESS_TERMCAP_ue=$'\E[0m' # reset underline
# vim: ft=sh