Update zsh config to be more minimal
- config is more centrilize in zshrc - it doesn't depend on oh-my-zsh
This commit is contained in:
parent
3b99ffe395
commit
5dcbc3a0b2
8 changed files with 123 additions and 180 deletions
|
|
@ -7,38 +7,38 @@ alias pdw="pwd"
|
|||
|
||||
# File Managment
|
||||
alias \
|
||||
cp='cp -iv' \
|
||||
mv='mv -iv' \
|
||||
cpr='rsync -za --partial -hh --info=progress2' \
|
||||
mvr='rsync -za --remove-source-files --partial -hh --info=progress2' \
|
||||
sync='rsync -zau --delete --partial -hh --info=progress2' \
|
||||
del='trash -i' \
|
||||
rmf='rm -rfI' \
|
||||
md='mkdir -pv' \
|
||||
ls='eza -lh --color=always --icons --git ' \
|
||||
la='eza -alh --color=always --icons --git ' \
|
||||
ld='eza -la --no-permissions --no-filesize --no-time --no-time --no-user' \
|
||||
mkexec='chmod +x';
|
||||
cp='cp -iv' \
|
||||
mv='mv -iv' \
|
||||
cpr='rsync -za --partial -hh --info=progress2' \
|
||||
mvr='rsync -za --remove-source-files --partial -hh --info=progress2' \
|
||||
sync='rsync -zau --delete --partial -hh --info=progress2' \
|
||||
del='trash -i' \
|
||||
rmf='rm -rfI' \
|
||||
md='mkdir -pv' \
|
||||
ls='eza -lh --color=always --icons --git ' \
|
||||
la='eza -alh --color=always --icons --git ' \
|
||||
ld='eza -la --no-permissions --no-filesize --no-time --no-time --no-user' \
|
||||
mkexec='chmod +x'
|
||||
|
||||
# Search and Query Files
|
||||
alias grep="rg --sort path --context 3";
|
||||
alias grep="rg --sort path --context 3"
|
||||
|
||||
# Quicly update Stuff
|
||||
alias vi-ssh="vi ~/.ssh/config"
|
||||
|
||||
# Query Stuff
|
||||
alias \
|
||||
ip='ip -human -color -brief addr' \
|
||||
df="duf --hide special --hide-mp '/boot,/boot/*'" \
|
||||
du='dust --reverse' \
|
||||
du1='dust --reverse --min-size 1M --depth 1' \
|
||||
du2='dust --reverse --min-size 1M --depth 2' \
|
||||
du3='dust --reverse --min-size 1M --depth 3' \
|
||||
cat='bat';
|
||||
ip='ip -human -color -brief addr' \
|
||||
df="duf --hide special --hide-mp '/boot,/boot/*'" \
|
||||
du='dust --reverse' \
|
||||
du1='dust --reverse --min-size 1M --depth 1' \
|
||||
du2='dust --reverse --min-size 1M --depth 2' \
|
||||
du3='dust --reverse --min-size 1M --depth 3' \
|
||||
cat='bat'
|
||||
|
||||
# Misc
|
||||
alias \
|
||||
reload='exec $SHELL -l' \
|
||||
reload='exec $SHELL -l'
|
||||
|
||||
# Specific Mac overrides
|
||||
if [[ "$OSTYPE" != 'linux-gnu' ]]; then
|
||||
|
|
|
|||
|
|
@ -1,2 +1,19 @@
|
|||
alias \
|
||||
glf='git log -p --'
|
||||
glf='git log -p --' \
|
||||
gs='git status' \
|
||||
ga='git add' \
|
||||
gp='git push' \
|
||||
gpo='git push origin' \
|
||||
gtd='git tag --delete' \
|
||||
gtdr='git tag --delete origin' \
|
||||
gr='git branch -r' \
|
||||
gplo='git pull origin' \
|
||||
gb='git branch ' \
|
||||
gc='git commit' \
|
||||
gd='git diff' \
|
||||
gco='git checkout ' \
|
||||
gl='git log' \
|
||||
gr='git remote' \
|
||||
grs='git remote show' \
|
||||
glo='git log --pretty="oneline"' \
|
||||
glol='git log --graph --oneline --decorate'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue