Added obsidian install

master
Kerem Yollu 2 years ago
parent f91ab1e7b0
commit 46c9a618c3

@ -7,6 +7,8 @@ source $MAIN_DIR/programs/fonts/fonts.sh
source $MAIN_DIR/programs/alacritty/alacritty.sh source $MAIN_DIR/programs/alacritty/alacritty.sh
source $MAIN_DIR/programs/wallpaper/wallpaper.sh source $MAIN_DIR/programs/wallpaper/wallpaper.sh
source $MAIN_DIR/programs/picom/picom.sh source $MAIN_DIR/programs/picom/picom.sh
source $MAIN_DIR/programs/obsidian/obsidian.sh
DOTFILE_DIR=$MAIN_DIR/dotfiles DOTFILE_DIR=$MAIN_DIR/dotfiles
USER_DOTFILE_DIR=/home/$USER/.config USER_DOTFILE_DIR=/home/$USER/.config
@ -25,7 +27,7 @@ pckgmngr_list=('sudo apt -y install' 'yes | sudo pacman -S' 'sudo apt -y install
# Declaration of common packages and their config files forr al linux distros # Declaration of common packages and their config files forr al linux distros
# These pacakges must be found in the standart repositories # These pacakges must be found in the standart repositories
common_programs_list=(htop tmux git fish mc wget sudo unzip cmake make gcc exa) common_programs_list=(htop tmux git fish mc wget sudo unzip cmake make gcc exa scrot)
common_dotfile_list=(fish) common_dotfile_list=(fish)
# Declaration of common default installations but for different OS # Declaration of common default installations but for different OS
@ -37,9 +39,9 @@ default_installs_raspberry=(chromium)
# Declaration of customized installations for different OS # Declaration of customized installations for different OS
# Their instalation methodes can differ depending of the distribution # Their instalation methodes can differ depending of the distribution
# These pacakges must not be found in the standart repositories and can be gits or direct installs # These pacakges must not be found in the standart repositories and can be gits or direct installs
#custom_installs_debian=(dmenu fonts alacritty wallpaper) #custom_installs_debian=(dmenu fonts alacritty wallpaper picom)
custom_installs_debian=(picom) custom_installs_debian=(obsidian)
custom_installs_arch=(dmenu fonts alacritty wallpaper) custom_installs_arch=(dmenu fonts alacritty wallpaper picom)
custom_installs_raspberry=(dmenu fonts alacritty wallpaper) custom_installs_raspberry=(dmenu fonts alacritty wallpaper picom)

@ -0,0 +1,46 @@
#!/bin/bash
OBSIDIAN_SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
obsidianSource="https://github.com/obsidianmd/obsidian-releases/releases/download/v1.1.9/Obsidian-1.1.9.AppImage"
obsidianInstallDir="/home/$USER/obsidian"
obsidianRep="https://git.keydev.me/kerem/infoVault"
intro()
{
graphics_install_prompt "Obsidian Will be installed"
graphics_install_prompt "Source : $obsidianSource"
}
outro()
{
graphics_install_prompt "Obsidian installation complete"
cd $MAIN_DIR
}
install_obsidian()
{
intro
cd $OBSIDIAN_SCRIPT_DIR
wget $obsidianSource
obsidianExecutable=$(ls | grep -oP '.*AppImage')
chmod ug+x $obsidianExecutable
if [[ -d "$obsidianInstallDir" ]]
then
graphics_comment "Obsidian Already Exists only the app will be changed"
cp $obsidianExecutable $obsidianInstallDir/obsidian.AppImage
else
graphics_comment "Obsidian Directory Will Be Created"
mkdir $obsidianInstallDir
cp $obsidianExecutable $obsidianInstallDir/obsidian.AppImage
fi
cd $obsidianInstallDir
graphics_comment "Markdown repertoire : $obsidianRep"
git clone $obsidianRep
cd $OBSIDIAN_SCRIPT_DIR
rm -r $obsidianExecutable
outro
}
Loading…
Cancel
Save