about summary refs log tree commit diff
path: root/configs/shared/zsh/functions.zsh
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2019-03-04T17·53+0000
committerWilliam Carroll <wpcarro@gmail.com>2019-03-04T17·53+0000
commitcb533533c1f32fb5a0681f5cc17e698a8121feea (patch)
treeb0cb571fb5a216e7e7098e8d37b6941ff7165bdd /configs/shared/zsh/functions.zsh
parent9da958d9201b2fef8908cca47cc4782c9b958ff7 (diff)
Remove function keyword from bash fn defns
To keep things standardized between functions.zsh and
dumping_grounds.zsh.
Diffstat (limited to 'configs/shared/zsh/functions.zsh')
-rw-r--r--configs/shared/zsh/functions.zsh9
1 files changed, 5 insertions, 4 deletions
diff --git a/configs/shared/zsh/functions.zsh b/configs/shared/zsh/functions.zsh
index b328f5c4a59d..36559d2a2ddc 100644
--- a/configs/shared/zsh/functions.zsh
+++ b/configs/shared/zsh/functions.zsh
@@ -1,14 +1,15 @@
 # From Google's ZSH Hacks
+# NOTE: this file has since been modified by me.
 
 # Improvement to fasd's existing `zz` alias
 unalias zz
-function zz() {
+zz() {
   # TODO: Add documentation
   local dir
   dir="$(fasd -Rdl "$1" | fzf --query="$1" -1 -0 --no-sort +m)" && cd "${dir}" || return 1
 }
 
-function fv() {
+fv() {
   # Usage: fv file pattern
   # This is useful when you know the fuzzy name of the file you want to edit
   local file
@@ -16,7 +17,7 @@ function fv() {
   [[ -n "$file" ]] && vim "$file"
 }
 
-function bb() {
+tb() {
   # Toggle between blaze-bin and your source.
   # Useful if you like to cd into the dir where your source lives.
   if [[ $PWD =~ '(.*)/blaze-bin(.*)' ]]; then
@@ -26,7 +27,7 @@ function bb() {
   fi
 }
 
-function jt() {
+tj() {
   # Toggle between the source dir and test dir.
   if [[ $PWD =~ '(.*)/javatests(.*)' ]]; then
     cd "${match[1]}/java${match[2]}"