From 70d4f60c5497e5a4625226fdc8bfb7fa862dd80e Mon Sep 17 00:00:00 2001 From: ktyl Date: Tue, 21 Dec 2021 19:57:01 +0000 Subject: [PATCH] add calculator func --- .scripts/func.sh | 3 +++ .zshrc | 1 + 2 files changed, 4 insertions(+) create mode 100644 .scripts/func.sh diff --git a/.scripts/func.sh b/.scripts/func.sh new file mode 100644 index 0000000..885acb4 --- /dev/null +++ b/.scripts/func.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +c() { printf "%s\n" "$@" | bc -l; } diff --git a/.zshrc b/.zshrc index dbb78e8..30c3eca 100644 --- a/.zshrc +++ b/.zshrc @@ -30,6 +30,7 @@ source $ZSH/oh-my-zsh.sh source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh source "$SCRIPTS/alias.sh" +source "$SCRIPTS/func.sh" # start ssh-agent automatically ssh-agent