diff --git a/dot_zsh_functions b/dot_zsh_functions index e3e26bf..f0ac1b5 100644 --- a/dot_zsh_functions +++ b/dot_zsh_functions @@ -31,6 +31,13 @@ bold() { note() { printf "${underline}${bold}${blue}Note:${reset} ${blue}%s${reset}\n" "$@" } +function substring() { + local _length=${#1} + local _start=${2} + local _end=${3} + echo ${1:_start:_length-_end} +} + # Browser interaction utilities function browse() {