From 0054c9a7b7642f59d8d501ef8378603e8a2b50c6 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 9 Oct 2019 19:04:16 +0100 Subject: [PATCH] Add 'f' function Adds 'f' function as a wrapper around 'fin' (the Docksal CLI) and removes the previous alias. --- tag-zsh/zsh/functions/f | 9 +++++++++ tag-zsh/zsh_profile.d/aliases.zsh | 3 --- 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 tag-zsh/zsh/functions/f diff --git a/tag-zsh/zsh/functions/f b/tag-zsh/zsh/functions/f new file mode 100644 index 0000000..fe1059b --- /dev/null +++ b/tag-zsh/zsh/functions/f @@ -0,0 +1,9 @@ +# No arguments: `fin ps` +# With arguments: acts like `fin` +f() { + if [[ $# > 0 ]]; then + fin $@ + else + fin ps + fi +} diff --git a/tag-zsh/zsh_profile.d/aliases.zsh b/tag-zsh/zsh_profile.d/aliases.zsh index 1257718..e08b184 100644 --- a/tag-zsh/zsh_profile.d/aliases.zsh +++ b/tag-zsh/zsh_profile.d/aliases.zsh @@ -30,9 +30,6 @@ alias yp="yarn prod" alias ys="yarn serve" alias yw="yarn watch" -# Docksal -alias f="fin" - # Shorter Git commands. alias add='git add' alias amend='git commit --amend'