2024-01-20 18:10:59 +01:00
|
|
|
#!/usr/bin/env zsh
|
2023-06-18 15:34:39 +02:00
|
|
|
|
|
|
|
DIRS=(
|
2024-04-23 14:31:53 +02:00
|
|
|
/_
|
|
|
|
/Apps
|
|
|
|
/Books
|
|
|
|
/Cfg
|
|
|
|
/Code
|
|
|
|
/Fonts
|
|
|
|
/Forks
|
|
|
|
/Servers
|
|
|
|
/Data
|
|
|
|
/Img
|
|
|
|
/Music
|
|
|
|
/My
|
|
|
|
/Work
|
|
|
|
/Ui
|
2023-06-18 15:34:39 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
# create dirs
|
2024-01-20 18:10:59 +01:00
|
|
|
for DIR in $DIRS; do
|
2024-04-23 14:31:53 +02:00
|
|
|
sudo mkdir -m 755 $DIR
|
|
|
|
sudo chown -R "$USER:$USER" $DIR
|
|
|
|
sudo chmod g+s -R $DIR
|
2024-01-20 18:10:59 +01:00
|
|
|
done
|
2023-06-18 15:34:39 +02:00
|
|
|
|
2024-01-20 18:10:59 +01:00
|
|
|
# mkdir -m 700 \
|
2024-04-23 14:31:53 +02:00
|
|
|
# /home/dym/.privat
|
2023-06-18 15:34:39 +02:00
|
|
|
|
|
|
|
|
|
|
|
# uuids for fstab
|
|
|
|
lsblk -o 'UUID,NAME,FSTYPE,LABEL'
|