initial commit
This commit is contained in:
commit
9864022fc7
|
@ -0,0 +1,45 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo "Creating directories ..."
|
||||
mkdir -p "$HOME/.config"
|
||||
mkdir -p "$HOME/Audio"
|
||||
mkdir -p "$HOME/.Desktop"
|
||||
mkdir -p "$HOME/.Templates"
|
||||
|
||||
# TODO - these two should be part of fstab configuring script
|
||||
sudo ln -s /mnt/4tb/data /mnt/data
|
||||
sudo ln -s /mnt/4tb/media /mnt/media
|
||||
|
||||
echo "Creating 'user-dirs.dirs' ..."
|
||||
cat > "$HOME"/.config/user-dirs.dirs <<EOF
|
||||
# This file is written by xdg-user-dirs-update
|
||||
# If you want to change or add directories, just edit the line you're
|
||||
# interested in. All local changes will be retained on the next run.
|
||||
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
|
||||
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
|
||||
# absolute path. No other format is supported.
|
||||
#
|
||||
XDG_DESKTOP_DIR="$HOME/.Desktop"
|
||||
XDG_DOWNLOAD_DIR="$HOME/Downloads"
|
||||
XDG_TEMPLATES_DIR="$HOME/.Templates"
|
||||
XDG_PUBLICSHARE_DIR="$HOME/Shared"
|
||||
XDG_DOCUMENTS_DIR="$HOME/Documents"
|
||||
XDG_MUSIC_DIR="$HOME/Audio/music"
|
||||
XDG_PICTURES_DIR="$HOME/Image"
|
||||
XDG_VIDEOS_DIR="$HOME/Video"
|
||||
EOF
|
||||
|
||||
echo "Creating symbolic links ..."
|
||||
ln -s /mnt/data/Documents "$HOME/Documents"
|
||||
ln -s /mnt/media/Downloads "$HOME/Downloads"
|
||||
ln -s /mnt/media/Image "$HOME/Image"
|
||||
ln -s /mnt/data/Learning "$HOME/Learning"
|
||||
ln -s /mnt/data/Projects "$HOME/Projects"
|
||||
ln -s /mnt/data/Shared "$HOME/Shared"
|
||||
ln -s /mnt/media/Video "$HOME/Video"
|
||||
ln -s '/mnt/media/Audio Books' "$HOME/Audio/audio-books"
|
||||
ln -s /mnt/media/Music "$HOME/Audio/music"
|
||||
|
||||
echo "Installing xdg-user-dirs ..."
|
||||
echo " pacman -Syu xdg-user-dirs"
|
||||
sudo pacman -Syu xdg-user-dirs
|
Reference in New Issue