Adding NVM and a tool for migrating fa tokens
This commit is contained in:
@@ -157,3 +157,7 @@ ex=🎯:\
|
|||||||
|
|
||||||
#[ "$(tty)" = "/dev/tty1" ] && ! pidof -s Xorg >/dev/null 2>&1 && exec startx "$XINITRC"
|
#[ "$(tty)" = "/dev/tty1" ] && ! pidof -s Xorg >/dev/null 2>&1 && exec startx "$XINITRC"
|
||||||
|
|
||||||
|
|
||||||
|
export NVM_DIR="$HOME/.config/nvm"
|
||||||
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||||
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
||||||
|
|||||||
14
.local/bin/fa_token_download
Executable file
14
.local/bin/fa_token_download
Executable file
@@ -0,0 +1,14 @@
|
|||||||
|
#! /bin/zsh
|
||||||
|
|
||||||
|
target_dir="/home/chris/Foundry/FA"
|
||||||
|
download_dir="/home/chris/Downloads"
|
||||||
|
|
||||||
|
for file in $download_dir/(FA_|Creature_Tokens)*.zip; do
|
||||||
|
dir=$(mktemp -d)
|
||||||
|
unzip -qq $file -d $dir
|
||||||
|
|
||||||
|
if [[ -d "$dir/FA_Tokens" ]]
|
||||||
|
then
|
||||||
|
rsync -az "$dir/FA_Tokens/" "$target_dir/Tokens"
|
||||||
|
fi
|
||||||
|
done
|
||||||
Reference in New Issue
Block a user