|
@@ -15,7 +15,7 @@ alias notify='function _notify() { osascript -e "display notification \"$1\""; }
|
|
|
alias weather='curl wttr.in/beijing'
|
|
|
alias dust1='dust -d 1'
|
|
|
|
|
|
-function git_tag_push() {
|
|
|
+function gittagpush() {
|
|
|
if [ $# -ne 2 ]; then
|
|
|
echo "需要两个参数: <变量1> <变量2>"
|
|
|
return 1
|
|
@@ -24,7 +24,16 @@ function git_tag_push() {
|
|
|
git tag -a $1 -m "$2"
|
|
|
git push origin $1
|
|
|
}
|
|
|
-alias git_tags='git --no-pager tag -l -n'
|
|
|
+alias gittags='git --no-pager tag -l -n'
|
|
|
+
|
|
|
+function reloadrc() {
|
|
|
+ if [[ "$0" =~ "zsh" ]]
|
|
|
+ then
|
|
|
+ source ~/.zshrc
|
|
|
+ else
|
|
|
+ source ~/.bashrc
|
|
|
+ fi
|
|
|
+}
|
|
|
|
|
|
## k8s
|
|
|
function k8s-getnamespace() {
|