cawolfkreo / unix-config-files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unix-config-files

These files are my personal configuration files to run zsh and vim on an Arch base system. You can use them on other unix like systems like macOS, Ubuntu, etc. The biggest difference is that you need to look at the documentation of your own package manager instead of using pacman to install zsh and/or vim.

Pacman

Don't forget to uncomment Color in /etc/pacman.conf and also add ILoveCandy to the file.

Installing Zsh

pacman -S zsh

Config folder

mkdir -p ~/.config/zsh/plugs
mkdir -p ~/.config/zsh/cache

Dotenv

mkdir -p ~/.config/zsh/plugs/dotenv

Download this script and save it into your dotenv folder (the one you just created).

Install autosuggestions

git clone https://github.com/zsh-users/zsh-autosuggestions ~/.config/zsh/plugs/zsh-autosuggestions

Install syntax highlighting

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.config/zsh/plugs/zsh-syntax

Zsh themes

mkdir -p ~/.config/zsh/themes

Download these themes and save them on the previously created folder:

Zsh aliases

Download this file and save it on ~/.config/zsh/: aliases.zsh

Zsh man pages color

Download the color-manpages.zsh file and save it on the same folder where you just stored the aliases.

Welcome message

Download the two message.* files (the zhs one and the the txt one) and save them in the same folder where the aliases are.

.zshrc

Download the .zshrc file from this repo and remember to save it in your ~/.config/zsh/ folder.

.zshenv

Download the .zshenv or the zsh env variables file and remember to save it in your ~/ folder.

Vim intallation

Pathogen

Follow the installation section on the official repo. Pathogen auto-updates your packages so it's not a bad option for a vim plugin manager.

vim searchlight

When searching on Vim it can be confusing to know where exactly the cursor is when iterating on each result, this plugin improves vim highlighting for search results.

cd .vim/bundle && \
git clone https://github.com/PeterRincker/vim-searchlight

vim .vimrc

Download the .vimrc file from this repo and remember to save it in your ~ folder.

Alacritty (Optional)

This is a simple terminal emulator that should work on most OS. It is lightweight but it uses hardware acceleration to work, if your PC is not supported, you might want to check if your hardware is compatible.

alacritty.yml

mkdir -p ~/.config/alacritty

Download this file and save it on ~/.config/alacritty/: alacritty.yml

alacritty and vim

set ttymouse=sgr

There is a ""feature"" on alacritty/vim and this is necessary for vim to read the mouse input from the terminal, add it to the .vimrc.

About


Languages

Language:Shell 82.5%Language:Vim Script 17.5%