mkdir -p $HOME/.local/{bin,share}
mkdir ~/.ssh
mkdir ~/.ssh/sockets
chmod 700 -R ~/.ssh
touch ~/.ssh/config
chmod 600 -R ~/.ssh/config
touch ~/.ssh/example{,.pub}
chmod 600 -R ~/.ssh/example*
Host * !bitbucket
ControlMaster auto
ControlPersist yes
Compression yes
ServerAliveInterval 120
Host example
HostName github.com
User git
IdentityFile ~/.ssh/example
ControlPath ~/.ssh/sockets/example
IdentitiesOnly yes
Host *
ControlPath ~/.ssh/sockets/socket-%C
mkdir -p $HOME/.config/zsh
# Ubuntu
git clone https://github.com/jeffreytse/zsh-vi-mode.git $HOME/.config/zsh/zsh-vi-mode
git clone https://github.com/romkatv/powerlevel10k.git $HOME/.config/zsh/powerlevel10k
git clone https://github.com/zsh-users/zsh-autosuggestions.git $HOME/.config/zsh/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-history-substring-search.git $HOME/.config/zsh/zsh-history-substring-search
git clone https://github.com/ohmyzsh/ohmyzsh.git $HOME/.config/zsh/ohmyzsh
# Ubuntu and Arch
git clone https://github.com/emersonmx/zsh-plugins.git $HOME/.config/zsh/zsh-plugins
git clone https://github.com/changyuheng/zsh-interactive-cd.git $HOME/.config/zsh/zsh-interactive-cd
git clone https://github.com/asdf-vm/asdf.git $HOME/.local/share/asdf
# run asdf.py [https://github.com/emersonmx/scripts/blob/main/arch/updater/asdf.py]
sudo apt-get update
sudo apt-get upgrade
sudo add-apt-repository ppa:neovim-ppa/stable
sudo apt-get update
sudo apt-get install \
build-essential \
clang \
cmake \
coreutils \
curl \
dirmngr \
fd-find \
fzf \
g++ \
gawk \
git \
gitk \
gpg \
htop \
iotop \
jq \
libasound2-dev \
libbz2-dev \
libffi-dev \
liblzma-dev \
libncursesw5-dev \
libreadline-dev \
libsqlite3-dev \
libssl-dev \
libstdc++-10-dev \
libudev-dev \
libwayland-dev \
libx11-dev \
libxkbcommon-dev \
libxml2-dev \
libxmlsec1-dev \
libxxhash-dev \
lld \
llvm \
make \
neovim \
nodejs \
pkg-config \
python3 \
python3-dev \
python3-pip \
ripgrep \
software-properties-common \
sqlite3 \
subversion \
tk-dev \
wget \
xdg-utils \
xz-utils \
yarn \
zip \
zlib1g-dev \
zsh
BINDIR=$HOME/.local/bin sh -c "$(curl -fsLS chezmoi.io/get)"
chezmoi init gh_personal:emersonmx/dotfiles.git
chezmoi apply
ln -sf /usr/bin/fdfind $HOME/.local/bin/fd
rm -rf /tmp/mold
git clone https://github.com/rui314/mold.git /tmp/mold
pushd /tmp
git checkout v1.2.1
make -j$(nproc) CXX=clang++
sudo make install
popd
# as root
passwd # root pass
echo "%wheel ALL=(ALL) ALL" > /etc/sudoers.d/wheel
useradd -m -G wheel -s /bin/bash {username}
passwd {username}
exit
# as user
sudo pacman-key --init
sudo pacman-key --populate
sudo vim /etc/pacman.conf
sudo vim /etc/pacman.d/mirrorlist
sudo vim /etc/locale.gen
sudo vim /etc/locale.conf
sudo locale-gen
sudo pacman -Syu archlinux-keyring base base-devel
cd /tmp
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
yay -S \
bat \
bottom \
chezmoi \
clang \
cmake \
coreutils \
curl \
direnv \
entr \
fd \
ffmpegthumbnailer \
fzf \
git \
helm \
htop \
httpie \
imagemagick \
iotop \
jq \
lazygit \
lld \
lsd \
man-db \
man-pages \
man-pages-pt_br \
mingw-w64-gcc \
mold \
neovim \
ninja \
nmap \
nodejs \
npm \
oh-my-zsh-git \
openssh \
openssl \
p7zip \
pacman-contrib \
pandoc \
poppler \
procs \
pulseaudio-alsa \
python \
python-pip \
rancher-k3d-bin \
reflector \
ripgrep \
rsync \
sccache \
sd \
sqlite \
subversion \
tealdeer \
terraform \
texlive \
tk \
tmux \
tmuxp \
ttf-dejavu \
ttf-meslo-nerd-font-powerlevel10k \
unzip \
util-linux \
vi \
vulkan-swrast \
wmctrl \
xclip \
xdg-utils \
xdotool \
xz \
yarn \
yazi \
zip \
zlib \
zoxide \
zsh \
zsh-autosuggestions \
zsh-completions \
zsh-history-substring-search \
zsh-theme-powerlevel10k-git \
zsh-vi-mode \
&& :
yay -S win32yank-bin