Created
December 30, 2015 13:50
-
-
Save ninrod/fdc7a21cefce08f43b4b to your computer and use it in GitHub Desktop.
exemplo de uso de glob modifier para expandir um parâmetro de uma função zsh interpretado como um filename para um full qualified name (full path)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/zsh | |
#location of default vim folder | |
vimfolder=~/.vim | |
#path of local .vim folder | |
target=.vim | |
foo() { | |
# seria a mesma coisa que $1(:a) | |
print ${1:a} | |
} | |
foo $target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment