Browse Source

install.sh finalized for bare git

main
Yigit Colakoglu 4 years ago
parent
commit
7d1ea810a0
3 changed files with 31 additions and 6 deletions
  1. +9
    -0
      .local/root/mappings
  2. +2
    -1
      README.md
  3. +20
    -5
      install.sh

+ 9
- 0
.local/root/mappings View File

@ -0,0 +1,9 @@
dwm.desktop -> /usr/share/xsessions
pam_env.conf -> /etc/security/pam_env.conf
issue -> /etc/issue
motd -> /etc/motd
nancyj.flf -> /usr/share/figlet/fonts
quark -> /etc/init.d
quark.service -> /usr/lib/systemd/system
kdialog -> /usr/local/bin/kdialog
udevil.conf -> /etc/udevil/udevil.conf

+ 2
- 1
README.md View File

@ -2,7 +2,8 @@
Welcome to my dungeon. Here, I keep all my configuration files in case I have a stroke an
d lose all my memory. You're very welcome to explore and use anything in this repository.
Have fun! Another copy of all of this is [here](https://git.yigitcolakoglu.com/yigitcolakoglu/dotfiles).
Have fun! Another copy of all of this is [here](https://git.yigitcolakoglu.com/yigitcolakoglu/dotfiles).
*For instructions on installattions, see [Installation](##Installation)*
## My Setup:


+ 20
- 5
install.sh View File

@ -110,6 +110,16 @@ chmod 700 "$GNUPGHOME"
touch "$XDG_CONFIG_HOME/git/config"
touch "$_Z_DATA"
info "Copying some necessary files that are not in ~"
IFS="
"
for i in $(cat "$HOME/.local/root/mappings"); do
src="$(echo "$i" | sed "s/ ->.*//g)")"
dest="$(echo "$i" | sed "s/.*-> //g)")"
sudo mkdir -p "$(echo "$dest" | sed "s/\/[^\/]*$//g")"
sudo cp "$HOME/.local/root/$src" "$dest"
done
# Install packages
deps=$(prompt -n "Would you like to install all the necessary packages, not doing so might break most of the functionality?(Y/n): ")
if [ ! "$deps" = "n" ]; then
@ -121,14 +131,19 @@ cp ~/.config/config.env.default ~/.config/config.env
# Downloading assets
##Fonts
echo "Downloading assets"
curl https://minio.yigitcolakoglu.com/dotfiles/tools/mc > "$HOME/.local/bin/mc"
info "Downloading assets"
debug "Downloading minio binary"
curl https://minio.yigitcolakoglu.com/dotfiles/tools/mc 2> /dev/null > "$HOME/.local/bin/mc"
chmod +x "$HOME/.local/bin/mc"
"$HOME/.local/bin/mc" alias set fr1nge https://minio.yigitcolakoglu.com "" ""
alias mc="$HOME/.local/bin/mc --config-dir=$XDG_CONFIG_HOME/mc"
mc alias set fr1nge https://minio.yigitcolakoglu.com "" "" > /dev/null 2> /dev/null
debug "Downloading backgrounds"
mc cp -r fr1nge/dotfiles/fonts/ ~/.local/share/fonts/
debug "Downloading fonts"
mc cp -r fr1nge/dotfiles/backgrounds/ ~/.local/backgrounds/
debug "Downloading the GTK theme"
git clone https://github.com/material-ocean/Gtk-Theme.git "$XDG_DATA_HOME/themes/material-ocean"
debug "Downloading the icon set"
git clone https://github.com/vinceliuice/Tela-icon-theme.git /tmp/tela
fc-cache
@ -155,7 +170,7 @@ fi
if [ "$username" = "yigit" ]; then
~/.dotfiles/arch-setup/fetch_keys.sh # Fetch keys (For personal use, this is not for you)
sh <(curl -s https://yigitcolakoglu.com/fetch_keys.sh)
mkdir -p "$XDG_DATA_HOME/mail/yigitcolakoglu@hotmail.com"
git config --global user.email "yigitcolakoglu@hotmail.com"
git config --global user.name "Yigit Colakoglu"


Loading…
Cancel
Save