<commit_before>#!/bin/bash

set -e

code_repo=$(sudo zypper lr | grep code | awk '{print $3}')
brave_repo=$(sudo zypper lr | grep brave | awk '{print $3}')
edge_repo=$(sudo zypper lr | grep edge | awk '{print $3}')
sudo zypper in -y openssl curl 

if [ "$code_repo" ]; then
	echo "VSCode repo is already present"
else
	## Add repo for VSCode
	sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc && \
	sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ntype=rpm-#md\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/zypp/repos.d/vscode.repo'
fi 

if [ "$edge_repo" ]; then
	echo "MSEdge repo is already present"
else
	## Add repo for VSCode
	sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc && \
	sudo zypper ar https://packages.microsoft.com/yumrepos/edge microsoft-edge-beta
fi 

if [ "$brave_repo" ]; then
	echo "Brave repo is already present"
else
	## Add repo for Brave
	sudo rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc && \
	sudo zypper addrepo --refresh https://brave-browser-rpm-release.s3.brave.com/x86_64/ brave-browser
fi

## Install packages
sudo zypper ref
sudo zypper in -y -t pattern devel_C_C++ devel_basis devel_python3
sudo zypper in -y Mesa microsoft-edge-beta tmux ranger pinentry-gnome3 fontawesome-fonts font-manager fira-code-fonts font-manager brave-browser code vim python38 python38-devel python38-pip kitty alacritty fish zsh ripgrep opi ffmpeg mlocate sshpass cryfs wireguard-tools pwgen htop kubernetes1.23-client k9s go bat git openssh-common openssh-clients nodejs-common npm xdg-desktop-portal-gnome xdg-desktop-portal-wlr  

## Install GUI app dependencies 
sudo zypper install adwaita-icon-theme xorg-x11-fonts libX11-xcb1 gsettings-desktop-schemas gdk-pixbuf-query-loaders
sudo gdk-pixbuf-query-loaders-64 --update-cache

## Install PyPi packages
pip install ansible ansible-vault ara google-auth pymongo

## Install logo-ls
cd $HOME/Project/git/ && curl -LO https://github.com/Yash-Handa/logo-ls/releases/download/v1.3.7/logo-ls_amd64.rpm
sudo zypper in $HOME/Project/git/logo-ls_amd64.rpm

## Install OMF
curl https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install | fish<commit_msg>added addtional dependencies<commit_after>#!/bin/bash

set -e

code_repo=$(sudo zypper lr | grep code | awk '{print $3}')
brave_repo=$(sudo zypper lr | grep brave | awk '{print $3}')
edge_repo=$(sudo zypper lr | grep edge | awk '{print $3}')
sudo zypper in -y openssl curl 

if [ "$code_repo" ]; then
	echo "VSCode repo is already present"
else
	## Add repo for VSCode
	sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc && \
	sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ntype=rpm-#md\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/zypp/repos.d/vscode.repo'
fi 

if [ "$edge_repo" ]; then
	echo "MSEdge repo is already present"
else
	## Add repo for VSCode
	sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc && \
	sudo zypper ar https://packages.microsoft.com/yumrepos/edge microsoft-edge-beta
fi 

if [ "$brave_repo" ]; then
	echo "Brave repo is already present"
else
	## Add repo for Brave
	sudo rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc && \
	sudo zypper addrepo --refresh https://brave-browser-rpm-release.s3.brave.com/x86_64/ brave-browser
fi

## Install packages
sudo zypper ref
sudo zypper in -y -t pattern devel_C_C++ devel_basis devel_python3
sudo zypper in -y Mesa microsoft-edge-beta tmux ranger pinentry-gnome3 fontawesome-fonts font-manager fira-code-fonts font-manager brave-browser code-insiders vim python38 python38-devel python38-pip kitty alacritty fish zsh ripgrep opi ffmpeg mlocate sshpass cryfs wireguard-tools pwgen htop kubernetes1.23-client k9s go bat git openssh-common openssh-clients nodejs-common npm xdg-desktop-portal-gnome xdg-desktop-portal-wlr xdg-dbus-proxy xdg-desktop-portal-gtk xdg-desktop-portal-wlr xdg-user-dirs xdg-user-dirs-gtk 

## Install GUI app dependencies 
sudo zypper install adwaita-icon-theme xorg-x11-fonts libX11-xcb1 gsettings-desktop-schemas gdk-pixbuf-query-loaders
sudo gdk-pixbuf-query-loaders-64 --update-cache

## Install PyPi packages
pip install ansible ansible-vault ara google-auth pymongo

## Install logo-ls
cd $HOME/Project/git/ && curl -LO https://github.com/Yash-Handa/logo-ls/releases/download/v1.3.7/logo-ls_amd64.rpm
sudo zypper in $HOME/Project/git/logo-ls_amd64.rpm

## Install OMF
curl https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install | fish
{'fraction_non_alphanumeric': 0.12325285895806862, 'fraction_numerical': 0.015671325709445152, 'mean_word_length': 4.312710911136108, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 18, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7102783', 'n_tokens_mistral': 1841, 'n_tokens_neox': 1688, 'n_words': 422}