From 5ae7ddea38d866fc46b60b04dd8b1b4a96e37263 Mon Sep 17 00:00:00 2001 From: aleidk Date: Sun, 4 Jun 2023 17:39:39 -0400 Subject: [PATCH] update aliases --- config/zsh/aliases/aliases.zsh | 6 +++++- config/zsh/functions/functions.zsh | 7 +++++++ config/zsh/zshrc | 2 -- exports/dnf.txt | 2 ++ 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/config/zsh/aliases/aliases.zsh b/config/zsh/aliases/aliases.zsh index f5e4b64..daf9433 100644 --- a/config/zsh/aliases/aliases.zsh +++ b/config/zsh/aliases/aliases.zsh @@ -12,6 +12,9 @@ alias rg="rg --sort path" 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' \ md='mkdir -pv'; # delete stuff @@ -44,11 +47,12 @@ alias \ # Query Stuff alias \ ip='ip -human -color -brief addr' \ - df='df -h' \ + 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'; ## Music Streams lofi_url="https://youtu.be/jfKfPfyJRdk" diff --git a/config/zsh/functions/functions.zsh b/config/zsh/functions/functions.zsh index 4ed8e46..901861c 100644 --- a/config/zsh/functions/functions.zsh +++ b/config/zsh/functions/functions.zsh @@ -41,3 +41,10 @@ profzsh() { shell=${1-$SHELL} ZPROF=true $shell -i -c exit } + +# Pretty Help +alias bathelp='bat --plain --language=help' +help() { + "$@" --help 2>&1 | bathelp +} + diff --git a/config/zsh/zshrc b/config/zsh/zshrc index 26de82e..cdbc895 100755 --- a/config/zsh/zshrc +++ b/config/zsh/zshrc @@ -58,7 +58,6 @@ plugins=( # archlinux bgnotify colored-man-pages - cp # alias to use rsync to copy files docker docker-compose fd @@ -66,7 +65,6 @@ plugins=( git git-prompt ripgrep - rsync safe-paste # don't run code when pasting systemd # tmux diff --git a/exports/dnf.txt b/exports/dnf.txt index 03ba237..636de85 100644 --- a/exports/dnf.txt +++ b/exports/dnf.txt @@ -1,4 +1,5 @@ dnf-plugin-system-upgrade +duf exa fd-find flatpak @@ -11,6 +12,7 @@ neovim nodejs remove-retired-packages ripgrep +sd tealdeer tmux tree-sitter-cli