clean init, add alacritty config
This commit is contained in:
56
alacritty/alacritty.yml
Normal file
56
alacritty/alacritty.yml
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
window:
|
||||||
|
opacity: 0.7
|
||||||
|
#decorations: none
|
||||||
|
#dimensions:
|
||||||
|
#lines: 120
|
||||||
|
#columns: 120
|
||||||
|
selection:
|
||||||
|
save_to_clipboard: true
|
||||||
|
font:
|
||||||
|
# Normal (roman) font face
|
||||||
|
normal:
|
||||||
|
# Font family
|
||||||
|
#
|
||||||
|
# Default:
|
||||||
|
# - (macOS) Menlo
|
||||||
|
# - (Linux/BSD) monospace
|
||||||
|
# - (Windows) Consolas
|
||||||
|
family: FiraCode Nerd Font
|
||||||
|
style: regular
|
||||||
|
|
||||||
|
# The `style` can be specified to pick a specific face.
|
||||||
|
#style: Regular
|
||||||
|
|
||||||
|
# Bold font face
|
||||||
|
#bold:
|
||||||
|
# Font family
|
||||||
|
#
|
||||||
|
# If the bold family is not specified, it will fall back to the
|
||||||
|
# value specified for the normal font.
|
||||||
|
#family: monospace
|
||||||
|
|
||||||
|
# The `style` can be specified to pick a specific face.
|
||||||
|
#style: Bold
|
||||||
|
|
||||||
|
# Italic font face
|
||||||
|
#italic:
|
||||||
|
# Font family
|
||||||
|
#
|
||||||
|
# If the italic family is not specified, it will fall back to the
|
||||||
|
# value specified for the normal font.
|
||||||
|
#family: monospace
|
||||||
|
|
||||||
|
# The `style` can be specified to pick a specific face.
|
||||||
|
#style: Italic
|
||||||
|
|
||||||
|
# Bold italic font face
|
||||||
|
#bold_italic:
|
||||||
|
# Font family
|
||||||
|
#
|
||||||
|
# If the bold italic family is not specified, it will fall back to the
|
||||||
|
# value specified for the normal font.
|
||||||
|
#family: monospace
|
||||||
|
|
||||||
|
# The `style` can be specified to pick a specific face.
|
||||||
|
#style: Bold Italic
|
||||||
|
|
||||||
27
init.sh
27
init.sh
@@ -4,40 +4,55 @@ which apt && PKGINST='sudo apt install -y' && PKGUPD='sudo apt update' || which
|
|||||||
|
|
||||||
echo "PKGUPD: ${PKGUPD}"
|
echo "PKGUPD: ${PKGUPD}"
|
||||||
echo "PKGINST: ${PKGINST}"
|
echo "PKGINST: ${PKGINST}"
|
||||||
#Install zsh
|
|
||||||
#Install neovim
|
#Install zsh, neovim, ripgrep, fd
|
||||||
#Install ripgrep
|
|
||||||
#Install fd
|
|
||||||
which apt && sudo add-apt-repository ppa:neovim-ppa/stable || which dnf && sudo dnf copr enable agriffis/neovim-nightly
|
which apt && sudo add-apt-repository ppa:neovim-ppa/stable || which dnf && sudo dnf copr enable agriffis/neovim-nightly
|
||||||
[[ $PKGINST != '' ]] && $PKGUPD && $PKGINST zsh neovim ripgrep fd-find fzf
|
[[ $PKGINST != '' ]] && $PKGUPD && $PKGINST zsh neovim ripgrep fd-find fzf
|
||||||
|
|
||||||
#Install oh-my-zsh
|
#Install oh-my-zsh
|
||||||
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
||||||
|
|
||||||
#Install oh-my-zsh plugins
|
#Install oh-my-zsh plugins
|
||||||
if [[ -d $HOME/.oh-my-zsh ]]; then
|
if [[ -d $HOME/.oh-my-zsh ]]; then
|
||||||
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
|
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
|
||||||
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
|
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#install vim-plug
|
#install vim-plug
|
||||||
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
||||||
|
|
||||||
#Clone dotfiles
|
#Clone dotfiles
|
||||||
[[ ! -d $HOME/.dotfiles ]] && cd $HOME && git clone https://github.com/jbohanon/.dotfiles
|
[[ ! -d $HOME/.dotfiles ]] && cd $HOME && git clone https://github.com/jbohanon/.dotfiles
|
||||||
|
|
||||||
#Make directories & symlinks
|
#Make directories & symlinks
|
||||||
mkdir $HOME/.config
|
mkdir -p $HOME/.config
|
||||||
ln -s $HOME/.dotfiles/zsh $HOME/.config/zsh
|
ln -s $HOME/.dotfiles/zsh $HOME/.config/zsh
|
||||||
ln -s $HOME/.dotfiles/nvim $HOME/.config/nvim
|
ln -s $HOME/.dotfiles/nvim $HOME/.config/nvim
|
||||||
|
ln -s $HOME/.dotfiles/tmux $HOME/.config/tmux
|
||||||
ln -s $HOME/.config/nvim/init.vim $HOME/.vimrc
|
ln -s $HOME/.config/nvim/init.vim $HOME/.vimrc
|
||||||
ln -s $HOME/.config/zsh/.zshrc $HOME/.zshrc
|
ln -s $HOME/.config/zsh/.zshrc $HOME/.zshrc
|
||||||
|
ln -s $HOME/.config/tmux/tmux.conf $HOME/.tmux.conf
|
||||||
|
|
||||||
#Install powerline-fonts
|
#Install powerline-fonts
|
||||||
which apt && $PKGINST fonts-powerline || which dnf && $PKGINST powerline-fonts
|
which apt && $PKGINST fonts-powerline || which dnf && $PKGINST powerline-fonts
|
||||||
|
|
||||||
#Install starship
|
#Install starship
|
||||||
curl -sS https://starship.rs/install.sh | sh
|
curl -sS https://starship.rs/install.sh | sh
|
||||||
|
|
||||||
#Install mygvm
|
#Install mygvm
|
||||||
mkdir $HOME/go
|
mkdir $HOME/go
|
||||||
mkdir -p $HOME/.go/downloads
|
mkdir -p $HOME/.go/downloads
|
||||||
sudo ln -s $HOME/.dotfiles/zsh/mygvm /usr/local/bin/mygvm
|
sudo ln -s $HOME/.dotfiles/zsh/mygvm /usr/local/bin/mygvm
|
||||||
|
|
||||||
#Install Go
|
#Install Go
|
||||||
mygvm go1.18.6
|
mygvm install go1.18.6
|
||||||
|
|
||||||
#link gitconfig
|
#link gitconfig
|
||||||
ln -s $HOME/.dotfiles/.gitconfig $HOME/.gitconfig
|
ln -s $HOME/.dotfiles/.gitconfig $HOME/.gitconfig
|
||||||
|
|
||||||
|
#Install kubectl
|
||||||
|
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
|
||||||
|
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
|
||||||
|
|
||||||
|
#install nvm
|
||||||
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
|
||||||
|
|||||||
Reference in New Issue
Block a user