This file contains hidden or 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
| export ZPLUG_HOME=/usr/local/opt/zplug | |
| source $ZPLUG_HOME/init.zsh |
This file contains hidden or 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
| autoload -U up-line-or-beginning-search down-line-or-beginning-search | |
| zle -N up-line-or-beginning-search | |
| zle -N down-line-or-beginning-search | |
| bindkey "^[[A" up-line-or-beginning-search | |
| bindkey "^[[B" down-line-or-beginning-search |
This file contains hidden or 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
| WAITING_DOTS=${WAITING_DOTS:-"..."} | |
| expand-or-complete-with-dots() { | |
| echo -n $WAITING_DOTS | |
| zle expand-or-complete | |
| zle redisplay | |
| } | |
| zle -N expand-or-complete-with-dots | |
| bindkey "^I" expand-or-complete-with-dots |
This file contains hidden or 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
| echo $PATH |
This file contains hidden or 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
| - (void)eachFile:(void (^)(YKFile *file, NSUInteger idx))pFunction; | |
| - (void)sortFiles:(NSComparisonResult (^)(YKFile *file1, YKFile *file2))pFunction; | |
| - (void)removeFilesFromList:(BOOL (^)(YKFile *file))pFunction; | |
| - (YKFileArray *)cutFilesFromList:(BOOL (^)(YKFile *file))pFunction; |
This file contains hidden or 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
| # aliases to Mac Applications | |
| function app_alias() { | |
| apps=$(find $1/*.app -maxdepth 0) | |
| apps=(${(@f)"$(echo $apps)"}) | |
| for app in $apps | |
| do | |
| aliasname=$(echo $app | sed 's/.app//' | sed 's!^.*/!!') | |
| aliasname=$(echo $aliasname | sed -e 's/ //g') | |
| app=$(echo $app | sed -e 's/\ /\\ /g') |
NewerOlder