add calculator func

This commit is contained in:
ktyl 2021-12-21 19:57:01 +00:00
parent fcd4240435
commit 70d4f60c54
2 changed files with 4 additions and 0 deletions

3
.scripts/func.sh Normal file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
c() { printf "%s\n" "$@" | bc -l; }

1
.zshrc
View File

@ -30,6 +30,7 @@ source $ZSH/oh-my-zsh.sh
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source "$SCRIPTS/alias.sh" source "$SCRIPTS/alias.sh"
source "$SCRIPTS/func.sh"
# start ssh-agent automatically # start ssh-agent automatically
ssh-agent ssh-agent