mirror of
https://github.com/ksyasuda/rice.git
synced 2024-11-22 03:19:58 -08:00
14 lines
380 B
Bash
14 lines
380 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
for file in $(ls); do
|
||
|
filename=$(filename $file)
|
||
|
extension=$(extension $file)
|
||
|
if [[ $filename != "move" && $filename != $extension ]]; then
|
||
|
echo $filename.$extension
|
||
|
ln -sr $file /home/sudacode/.config/polybar/scripts/$file
|
||
|
elif [[ $filename == $extension ]]; then
|
||
|
echo $filename
|
||
|
ln -sr $filename /home/sudacode/.config/polybar/scripts/$filename
|
||
|
fi
|
||
|
done
|