Initial commit
This commit is contained in:
commit
56ed33c8f7
BIN
setup/.DS_Store
vendored
Normal file
BIN
setup/.DS_Store
vendored
Normal file
Binary file not shown.
50
setup/install.sh
Normal file
50
setup/install.sh
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
unameOut="$(uname -s)"
|
||||||
|
case "${unameOut}" in
|
||||||
|
Linux*)
|
||||||
|
machine=Linux;;
|
||||||
|
Darwin*)
|
||||||
|
machine=Mac;;
|
||||||
|
CYGWIN*)
|
||||||
|
machine=Cygwin;;
|
||||||
|
MINGW*)
|
||||||
|
machine=MinGw;;
|
||||||
|
MSYS_NT*)
|
||||||
|
machine=Git;;
|
||||||
|
*)
|
||||||
|
machine="UNKNOWN:${unameOut}"
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ "$machine" = "Mac" ]
|
||||||
|
then
|
||||||
|
pkg_manager = 'brew'
|
||||||
|
echo "Installing brew package manager"
|
||||||
|
bash realpath program/package_manager/brew/install_brew.sh
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$machine" = "Linux" ]
|
||||||
|
then
|
||||||
|
pkg_manager = 'apt'
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
echo "Installing ${pkg_manager} packages"
|
||||||
|
bash realpath program/package_manager/${pkg_manager}/packages.sh
|
||||||
|
if [ -f realpath program/package_manager/${pkg_manager}/others ]
|
||||||
|
then
|
||||||
|
for file in $(program/package_manager/${pkg_manager}/others/*.sh)
|
||||||
|
do
|
||||||
|
bash ${file}
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Installing side packages"
|
||||||
|
for file in $(realpath others/**/*.sh)
|
||||||
|
do
|
||||||
|
bash ${file}
|
||||||
|
done
|
||||||
|
echo "Installing dotfiles"
|
||||||
|
for file in $(realpath dotfiles/**/*.sh)
|
||||||
|
do
|
||||||
|
bash ${file}
|
||||||
|
done
|
||||||
|
|
BIN
setup/programs/.DS_Store
vendored
Normal file
BIN
setup/programs/.DS_Store
vendored
Normal file
Binary file not shown.
7
setup/programs/dotfiles/packages.sh
Normal file
7
setup/programs/dotfiles/packages.sh
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
echo "Clonning dotfiles repo : make sure you have set up your ssh keys !!"
|
||||||
|
git clone git@gitlab.xlim.fr:araison/dotfiles.git $HOME/
|
||||||
|
|
||||||
|
for conf in $(ls ./dotfiles)
|
||||||
|
do
|
||||||
|
stow ${conf}
|
||||||
|
done
|
2
setup/programs/others/nerd-font.sh
Normal file
2
setup/programs/others/nerd-font.sh
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
brew tap homebrew/cask-fonts
|
||||||
|
brew install font-hack-nerd-font
|
1
setup/programs/others/oh-my-zsh.sh
Normal file
1
setup/programs/others/oh-my-zsh.sh
Normal file
@ -0,0 +1 @@
|
|||||||
|
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
1
setup/programs/others/powerlevel10k.sh
Normal file
1
setup/programs/others/powerlevel10k.sh
Normal file
@ -0,0 +1 @@
|
|||||||
|
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
|
10
setup/programs/others/python3-libs/packages.sh
Normal file
10
setup/programs/others/python3-libs/packages.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
echo "Upgrading python3-pip"
|
||||||
|
python3 -m pip install --upgrade pip
|
||||||
|
|
||||||
|
function install {
|
||||||
|
echo "Installing: ${1}..."
|
||||||
|
pip3 install ${1}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
python_packages = (numpy matplotlib scipy seaborn django torch torchvision torchaudio networkx Faker torch-cluster torch-geometric torch-scatter torch-sparse torch-spline-conv tqdm yapf yt-dlp scikit-learn scikit-image pandas)
|
4
setup/programs/others/zsh-plugins.sh
Normal file
4
setup/programs/others/zsh-plugins.sh
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
echo "Installing zsh-autosuggestions .."
|
||||||
|
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
|
||||||
|
echo "Installing zsh-syntax-highlighting .."
|
||||||
|
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
|
BIN
setup/programs/package_manager/.DS_Store
vendored
Normal file
BIN
setup/programs/package_manager/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
setup/programs/package_manager/apt/.DS_Store
vendored
Normal file
BIN
setup/programs/package_manager/apt/.DS_Store
vendored
Normal file
Binary file not shown.
3
setup/programs/package_manager/apt/others/firefox.sh
Normal file
3
setup/programs/package_manager/apt/others/firefox.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
sudo add-apt-repository ppa:mozillateam/ppa
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install firefox
|
5
setup/programs/package_manager/apt/others/i3.sh
Normal file
5
setup/programs/package_manager/apt/others/i3.sh
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
/usr/lib/apt/apt-helper download-file https://debian.sur5r.net/i3/pool/main/s/sur5r-keyring/sur5r-keyring_2023.02.18_all.deb keyring.deb SHA256:a511ac5f10cd811f8a4ca44d665f2fa1add7a9f09bef238cdfad8461f5239cc4
|
||||||
|
$ sudo apt install ./keyring.deb
|
||||||
|
$ echo "deb http://debian.sur5r.net/i3/ $(grep '^DISTRIB_CODENAME=' /etc/lsb-release | cut -f2 -d=) universe" | sudo tee /etc/apt/sources.list.d/sur5r-i3.list
|
||||||
|
$ sudo apt update
|
||||||
|
$ sudo apt install i3
|
7
setup/programs/package_manager/apt/others/neovim.sh
Normal file
7
setup/programs/package_manager/apt/others/neovim.sh
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
|
||||||
|
chmod u+x nvim.appimage
|
||||||
|
./nvim.appimage --appimage-extract
|
||||||
|
./squashfs-root/AppRun --version
|
||||||
|
sudo mv squashfs-root /
|
||||||
|
sudo ln -s /squashfs-root/AppRun /usr/bin/nvim
|
||||||
|
nvim
|
3
setup/programs/package_manager/apt/others/thunderbird.sh
Normal file
3
setup/programs/package_manager/apt/others/thunderbird.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
sudo add-apt-repository ppa:mozillateam/ppa
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install thunderbird
|
3
setup/programs/package_manager/apt/others/zotero.sh
Normal file
3
setup/programs/package_manager/apt/others/zotero.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
wget -qO- https://raw.githubusercontent.com/retorquere/zotero-deb/master/install.sh | sudo bash
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install zotero
|
23
setup/programs/package_manager/apt/packages.sh
Normal file
23
setup/programs/package_manager/apt/packages.sh
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
function install {
|
||||||
|
which $1 &> /dev/null
|
||||||
|
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Installing: ${1}..."
|
||||||
|
sudo apt install -y $1
|
||||||
|
else
|
||||||
|
echo "Already installed: ${1}"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
apt_packages = (curl exfat-utils git htop tmux gimp inkscape texlive-full stow vlc blender gparted docker.io docker-compose python3-pip wget tree)
|
||||||
|
|
||||||
|
sudo apt update
|
||||||
|
|
||||||
|
for package in "${apt_packages}"
|
||||||
|
do
|
||||||
|
install ${package}
|
||||||
|
done
|
||||||
|
|
||||||
|
|
1
setup/programs/package_manager/brew/install_brew.sh
Normal file
1
setup/programs/package_manager/brew/install_brew.sh
Normal file
@ -0,0 +1 @@
|
|||||||
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
31
setup/programs/package_manager/brew/packages.sh
Normal file
31
setup/programs/package_manager/brew/packages.sh
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
function install {
|
||||||
|
which $1 &> /dev/null
|
||||||
|
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Installing: ${1}..."
|
||||||
|
if [ -z ${2} ]
|
||||||
|
then
|
||||||
|
brew install ${1}
|
||||||
|
else
|
||||||
|
brew install --cask ${1}
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "Already installed: ${1}"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
cask_packages = (gimp thunderbird firefox zotero rectangle vlc iterm2 inkscape obsidian blender mactex bitwarden visual-studio-code spotify)
|
||||||
|
other_packages = (neovim tmux docker docker-compose git curl zsh stow tree)
|
||||||
|
|
||||||
|
brew update
|
||||||
|
|
||||||
|
for package in "${cask_packages}"
|
||||||
|
do
|
||||||
|
install ${package} "cask"
|
||||||
|
done
|
||||||
|
|
||||||
|
for package in "${other_packages}"
|
||||||
|
do
|
||||||
|
install ${package}
|
||||||
|
done
|
Loading…
Reference in New Issue
Block a user