From 504a2aade08c6c872cfa6cee8e1a7d6b19486168 Mon Sep 17 00:00:00 2001 From: Donaldttt Date: Sat, 2 Jul 2022 17:02:38 -0400 Subject: [PATCH] add dict function --- bash_tools.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bash_tools.sh b/bash_tools.sh index 2b3ae65..0ac4875 100644 --- a/bash_tools.sh +++ b/bash_tools.sh @@ -4,9 +4,9 @@ # If no argument supplied, the host machine's ip will # be used # doc for api: https://ip-api.com/docs/api -DOT_FILE_DIR=$(dirname ${BASH_SOURCE[0]})/ +DOTFILE_DIR=$(dirname ${BASH_SOURCE[0]})/ -source $DOT_FILE_DIR/bash_tools/helper.sh +source $DOTFILE_DIR/bash_tools/helper.sh function ipinfo(){ local api_str="http://ip-api.com/json/$1?fields=query,country,regionName,city,district,zip,isp,org,reverse,mobile,proxy,hosting" @@ -29,7 +29,7 @@ function odict(){ # self host directory function dict(){ - python $ + python $DOTFILE_DIR/bash_tools/dict.py $1 } # Linux specific functions @@ -70,4 +70,4 @@ fi # -t: Sort by time. Display the newest first # alias ls=ls -At -source $DOT_FILE_DIR/bash_tools/fzf_file_seletor.sh +source $DOTFILE_DIR/bash_tools/fzf_file_seletor.sh