Add a few extra aliases

This commit is contained in:
Sage Vaillancourt 2023-08-26 00:09:09 -04:00
parent 3d2fb260c3
commit d1824a3ece
2 changed files with 18 additions and 0 deletions

View File

@ -139,3 +139,4 @@ ex ()
}
source ~/.shell_aliases
. "$HOME/.cargo/env"

View File

@ -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"