idek anymore

main
Nicholas Hope 2022-11-03 23:00:53 -04:00
parent 17762ab993
commit 35302ab90b
1 changed files with 6 additions and 6 deletions

12
init.sh
View File

@ -9,14 +9,14 @@ MV="mv"
${MV} dostuff.sh ~
if [[ "$PATH" != *"~/.cyber_bin"* ]]; then
if [[ "$PATH" != *"~/cyber_bin"* ]]; then
# if script not run yet
PATH="$PATH:~/.cyber_bin"
mkdir ~/.cyber_bin
PATH="$PATH:~/cyber_bin"
mkdir ~/cyber_bin
fi
for file in "$(ls -A1 dot_bash_*)"; do
newname=$(perl -p -e 's,dot_,.,gmi')
for file in $(ls -A1 dot_bash_*); do
newname=$(perl -p -e 's#dot_#.#gmi' <<< "$file")
${MV} "$file" ~/"$newname"
done
@ -24,7 +24,7 @@ for file in $(
ls -1 |
egrep -vi \(init\|license\|readme\|git\)
); do
${MV} "$file" "~/.cyber_bin/$file"
${MV} "$file" "~/cyber_bin/$file"
done
# push changes made to PATH