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
| # install zsh | |
| rm -rf ~/.oh-my-zsh/ | |
| echo y | sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
| # install zsh-autosuggestions | |
| rm -rf ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions | |
| git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions | |
| # edit plugins | |
| if [ "$(uname)" = "Darwin" ]; then |
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
| find from_folder -name '*.*' -exec mv {} to_folder \; | |
| ls -1q * | wc -l | |
| for i in {0..26}; do cp 0.json assets/$i.json; jq '.name = .name + " #'$i'" | .image = "'$i'.png" | .properties.files[0].uri = "'$i'.png"' assets/$i.json > tmp.$$.json && mv tmp.$$.json assets/$i.json; done | |
| new=0;for i in assets/*.png; do mv -n "$i" assets/"$new.png"; ((new++)); done | |
| find ./assets/ -maxdepth 1 -type f -name "*.png" | wc -l | |
| for file in `ls -U | head -10`; do rm "$file"; done | |
| for i in assets/*.png; do mv "$i" assets/"$(uuidgen).png"; done |