Add 'f' function
Adds 'f' function as a wrapper around 'fin' (the Docksal CLI) and removes the previous alias.
This commit is contained in:
parent
6b7a7ea5a7
commit
0054c9a7b7
9
tag-zsh/zsh/functions/f
Normal file
9
tag-zsh/zsh/functions/f
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# No arguments: `fin ps`
|
||||||
|
# With arguments: acts like `fin`
|
||||||
|
f() {
|
||||||
|
if [[ $# > 0 ]]; then
|
||||||
|
fin $@
|
||||||
|
else
|
||||||
|
fin ps
|
||||||
|
fi
|
||||||
|
}
|
|
@ -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'
|
||||||
|
|
Loading…
Reference in a new issue