Skip to content

Instantly share code, notes, and snippets.

@0xLGG
Last active March 21, 2022 22:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0xLGG/b687534d6286b1f177a79695fdaa3c47 to your computer and use it in GitHub Desktop.
Save 0xLGG/b687534d6286b1f177a79695fdaa3c47 to your computer and use it in GitHub Desktop.
install on manjaro
#!/bin/sh
sudo pacman -Syu nvm alacritty xorg-xrandr vim zsh go tmux neovim git fakeroot base-devel fzf noto-fonts yarn docker openvpn fd python-pip \
cargo \
tig \
tldr \
i3-wm
echo 'prepare dirs'
mkdir ~/repos
mkdir ~/src
mkdir ~/.local/bin -p
mkdir ~/.fonts
mkdir ~/.config/alacritty -p
mkdir ~/.config/picom -p
echo 'dotfiles and symlinks'
cd
git clone https://github.com/tarjoilija/zgen.git "${HOME}/.zgen"
git clone https://github.com/0xlgg/dotfiles.git
git clone https://github.com/gpakosz/.tmux.git
ln -sf ~/dotfiles/shell/tmux/.tmux.conf.local
ln -sf ~/dotfiles/shell/tmux/.tmux.conf
ln -sf ~/dotfiles/shell/.p10k.zsh
ln -sf ~/dotfiles/shell/zsh/manj/.zshrc
cd ~/.config/alacritty && ln -sf ~/dotfiles/terminal/alacritty/alacritty.yml
echo 'git configs'
git config --global user.email "72031534+0xLGG@users.noreply.github.com"
git config --global user.name "0xLGG"# https://www.mikulskibartosz.name/git-fixup-explained/
# We don’t want to type autosquash and autostash every time we do a rebase, so we are going to enable them in the git configuration permanently.
git config --global rebase.autosquash true
git config --global rebase.autostash true
chsh -s $(which zsh)
echo 'intall bpytop'
pip3 install bpytop
echo 'init gh'
cd ~/src
git clone https://aur.archlinux.org/github-cli-git.git
cd github-cli-git/
makepkg -si
gh auth login
echo 'install st'
cd ~/src
git clone https://github.com/siduck76/st.git
cd st/
sudo make install
lspci -vnn
cd ~/src
git clone https://aur.archlinux.org/logo-ls.git
cd logo-ls/
makepkg -si
cd ~/src
git clone https://aur.archlinux.org/tldr++.git
cd tldr++/
makepkg -si
#echo 'install nvm'
#cd ~/src
#git clone https://aur.archlinux.org/nvm.git
#cd nvm/
#makepkg -si
#nvm ls-remote
#nvm install node
# alternative to nvm
echo 'install nodejs-n'
cd ~/src
git clone https://aur.archlinux.org/nodejs-n.git
cd nodejs-n
makepkg -si
sudo n latest
sudo n lts
echo 'install lunarvim'
cd ~/src
bash <(curl -s https://raw.githubusercontent.com/lunarvim/lunarvim/master/utils/installer/install.sh)
echo 'adding custom adjustment for onedarker'
cd ~/.local/share/lunarvim/lvim/colors/
ln -sf ~/dotfiles/lunarvim/onedarker.vim
cd ~/.config/lvim/
ln -sf ~/dotfiles/lunarvim/config.lua
cd ~/.local/share/lunarvim/lvim/lua/lvim/core/
ln -sf ~/dotfiles/lunarvim/which-key.lua
echo 'install font-manager and JetBrainsMono'
cd ~/src
git clone https://aur.archlinux.org/font-manager.git
cd font-manager/
makepkg -si
sudo pacman -Syu wget
cd ~/.fonts
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/JetBrainsMono.zip
bsdtar -x -f JetBrainsMono.zip
fc-cache -f -v
rm JetBrainsMono.zip
echo 'install brave'
cd ~/src
git clone https://aur.archlinux.org/brave-bin.git
cd brave-bin/
makepkg -si
echo 'picom handler'
sudo pacman -Syu picom
mkdir ~/.config/picom
cd ~/.config/picom
ln -sf ~/dotfiles/artix/picom/picom.conf
echo 'install rlwrap'
cd ~/src
wget https://github.com/hanslub42/rlwrap/releases/download/v0.45.2/rlwrap-0.45.2.tar.gz
mv rlwrap* rlwrap.tar.gz
tar -xvzf rlwrap.tar.gz
cd rlwrap-0.45.2/
./configure
make
sudo make install
echo 'install autojump'
cd ~/src
git clone https://aur.archlinux.org/autojump.git
cd autojump/
makepkg -si
echo 'ultimate browser extension'
cd ~/repos
git clone https://github.com/0xLGG/swisscows-banner-remover
echo 'you might want adjust xresources file to your device'
cd
ln -sf dotfiles/x/sbookone/xresources
echo 'mullvadvpn'
cd ~/src
mkdir mullvad
cd mullvad
wget https://mullvad.net/media/mullvad-code-signing.asc
gpg2 --import mullvad-code-signing.asc
gpg2 --edit-key A1198702FC3E0A09A9AE5B75D5A1D4F266DE8DDF
wget https://mullvad.net/media/signing-keys/linus-code-signing.asc
gpg2 --import linus-code-signing.asc
gpg2 --edit-key 7653B940E494FE87
wget https://mullvad.net/media/signing-keys/oskar-code-signing.asc
gpg2 --import oskar-code-signing.asc
git clone https://aur.archlinux.org/mullvad-vpn.git
cd mullvad-vpn
makepkg -sic
# Cleanup
sudo pacman -Rcns gnuchess gnome-chess
# Removing Packages that Don’t Depend on Other Packages
sudo pacman -R $(pacman -Qdtq)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment