added cool alias for direct commiting to git and added resources to todo
parent
8ddda28331
commit
51d3c59218
15
.bashrc
15
.bashrc
|
|
@ -21,6 +21,19 @@ alias gita="git add ."
|
||||||
alias gitc="git commit -m"
|
alias gitc="git commit -m"
|
||||||
alias gitp="git push"
|
alias gitp="git push"
|
||||||
|
|
||||||
|
|
||||||
|
function gitf() {
|
||||||
|
|
||||||
|
if [ -z $1 ]; then
|
||||||
|
echo "no commit message, doing nothing"
|
||||||
|
else
|
||||||
|
echo "directly commiting with message \"$1\""
|
||||||
|
git add .
|
||||||
|
git commit -m $1
|
||||||
|
git push
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
alias icat="kitten icat"
|
alias icat="kitten icat"
|
||||||
alias cls="clear"
|
alias cls="clear"
|
||||||
|
|
||||||
|
|
@ -35,6 +48,8 @@ function y() {
|
||||||
rm -f -- "$tmp"
|
rm -f -- "$tmp"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
eval "$(starship init bash)"
|
eval "$(starship init bash)"
|
||||||
|
|
||||||
fastfetch --logo-color-1 red --logo-color-2 red --color red -l ~/Dotfiles/pin.txt
|
fastfetch --logo-color-1 red --logo-color-2 red --color red -l ~/Dotfiles/pin.txt
|
||||||
|
|
|
||||||
13
.zshrc
13
.zshrc
|
|
@ -124,6 +124,18 @@ alias gitc="git commit -m"
|
||||||
alias gitp="git push"
|
alias gitp="git push"
|
||||||
alias gitg="git pull"
|
alias gitg="git pull"
|
||||||
|
|
||||||
|
function gitf() {
|
||||||
|
|
||||||
|
if [ -z $1 ]; then
|
||||||
|
echo "no commit message, doing nothing"
|
||||||
|
else
|
||||||
|
echo "directly commiting with message \"$1\""
|
||||||
|
git add .
|
||||||
|
git commit -m $1
|
||||||
|
git push
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
alias icat="kitten icat"
|
alias icat="kitten icat"
|
||||||
alias cls="clear"
|
alias cls="clear"
|
||||||
|
|
||||||
|
|
@ -139,6 +151,7 @@ function y() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
eval "$(starship init zsh)"
|
eval "$(starship init zsh)"
|
||||||
|
|
||||||
fastfetch --logo-color-1 red --logo-color-2 red --color red -l ~/Dotfiles/pin.txt
|
fastfetch --logo-color-1 red --logo-color-2 red --color red -l ~/Dotfiles/pin.txt
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue