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 source ~/.shell_aliases
. "$HOME/.cargo/env"

View File

@ -4,6 +4,18 @@ function fin {
find -iname "*$@*" 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 { function wf {
if [[ "$@" != "" ]]; then if [[ "$@" != "" ]]; then
local fzf_args="-q $@" local fzf_args="-q $@"
@ -45,6 +57,11 @@ function vo {
echo $f echo $f
} }
alias yt='yt-dlp'
function y {
cd ~/.ytdl; yt-dlp $@; cd -
}
# Mkdir should remind you to use git # Mkdir should remind you to use git
alias mkdir="echo 'Maybe use git init if this is a new project' && mkdir" alias mkdir="echo 'Maybe use git init if this is a new project' && mkdir"