From d1824a3ece3f3b7f1f216ff68178dee55d8fcaad Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Sat, 26 Aug 2023 00:09:09 -0400 Subject: [PATCH] Add a few extra aliases --- fake_home/.bashrc | 1 + fake_home/.shell_aliases | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/fake_home/.bashrc b/fake_home/.bashrc index 4ac8e0f..6a82646 100644 --- a/fake_home/.bashrc +++ b/fake_home/.bashrc @@ -139,3 +139,4 @@ ex () } source ~/.shell_aliases +. "$HOME/.cargo/env" diff --git a/fake_home/.shell_aliases b/fake_home/.shell_aliases index 0985b6b..f922434 100755 --- a/fake_home/.shell_aliases +++ b/fake_home/.shell_aliases @@ -4,6 +4,18 @@ function fin { find -iname "*$@*" } +function gamp { + git add * && git commit -am "$1" && git push +} + +function gap { + git add * && git commit -a && git push +} + +function gd { + git add * && git diff --cached --word-diff=porcelain +} + function wf { if [[ "$@" != "" ]]; then local fzf_args="-q $@" @@ -45,6 +57,11 @@ function vo { echo $f } +alias yt='yt-dlp' +function y { + cd ~/.ytdl; yt-dlp $@; cd - +} + # Mkdir should remind you to use git alias mkdir="echo 'Maybe use git init if this is a new project' && mkdir"