Add 'f' function

Adds 'f' function as a wrapper around 'fin' (the Docksal CLI) and removes the previous alias.
This commit is contained in:
Oliver Davies 2019-10-09 19:04:16 +01:00
parent 6b7a7ea5a7
commit 0054c9a7b7
2 changed files with 9 additions and 3 deletions

9
tag-zsh/zsh/functions/f Normal file
View file

@ -0,0 +1,9 @@
# No arguments: `fin ps`
# With arguments: acts like `fin`
f() {
if [[ $# > 0 ]]; then
fin $@
else
fin ps
fi
}

View file

@ -30,9 +30,6 @@ alias yp="yarn prod"
alias ys="yarn serve" alias ys="yarn serve"
alias yw="yarn watch" alias yw="yarn watch"
# Docksal
alias f="fin"
# Shorter Git commands. # Shorter Git commands.
alias add='git add' alias add='git add'
alias amend='git commit --amend' alias amend='git commit --amend'