Skip to content

Instantly share code, notes, and snippets.

View reinhardlinardi's full-sized avatar

Reinhard Linardi reinhardlinardi

View GitHub Profile
@reinhardlinardi
reinhardlinardi / zsh-setup-mac
Created July 19, 2023 04:20
Mac zsh setup script
#!/bin/bash
# Prerequisites:
# 1. Install homebrew and iTerm2
# 2. Run: brew install git coreutils antidote
_UNDERSCORE="\x1b[4m"
_RESET_STYLE="\x1b[0m"
_RESET_LINE="\r\x1b[K"
@reinhardlinardi
reinhardlinardi / zsh-setup-wsl
Created July 19, 2023 04:18
WSL zsh setup script
#!/bin/bash
# Prerequisites:
# Run: sudo apt install -y zsh curl git coreutils
_UNDERSCORE="\x1b[4m"
_RESET_STYLE="\x1b[0m"
_RESET_LINE="\r\x1b[K"
cd ~
@reinhardlinardi
reinhardlinardi / zsh-setup-linux
Created July 19, 2023 04:13
Linux zsh setup script
#!/bin/bash
# Prerequisites:
# Run: sudo apt install -y zsh curl git coreutils
_UNDERSCORE="\x1b[4m"
_RESET_STYLE="\x1b[0m"
_RESET_LINE="\r\x1b[K"
cd ~
@reinhardlinardi
reinhardlinardi / .zsh_plugins.txt
Last active July 20, 2023 17:42
Antidote zsh plugins list
# List of zsh plugins
# Wiki: https://getantidote.github.io/usage
zsh-users/zsh-syntax-highlighting
zsh-users/zsh-autosuggestions
zsh-users/zsh-completions
zsh-users/zsh-history-substring-search
# Prompt theme
sindresorhus/pure kind:fpath
@reinhardlinardi
reinhardlinardi / vim-setup-mac
Last active July 19, 2023 04:04
Mac vim setup script
#!/bin/bash
_UNDERSCORE="\x1b[4m"
_RESET_STYLE="\x1b[0m"
_RESET_LINE="\r\x1b[K"
cd ~
printf "$_RESET_LINE[1/4] Downloading .vimrc"
err=$(curl -sS https://gist.githubusercontent.com/reinhardlinardi/f867c411a0a8abd86468aa381ba7f0e6/raw/.vimrc-mac -o .vimrc 2>&1)
@reinhardlinardi
reinhardlinardi / vim-setup-linux
Last active July 19, 2023 04:04
Linux vim setup script
#!/bin/bash
_UNDERSCORE="\x1b[4m"
_RESET_STYLE="\x1b[0m"
_RESET_LINE="\r\x1b[K"
cd ~
printf "$_RESET_LINE[1/4] Downloading .vimrc"
err=$(curl -sS https://gist.githubusercontent.com/reinhardlinardi/9ead07d0d4b8f2be1f917deeff56a8eb/raw/.vimrc-linux -o .vimrc 2>&1)
@reinhardlinardi
reinhardlinardi / .zshrc-mac
Last active July 21, 2023 04:08
Mac zsh configuration file
# --- zsh settings ---
# Disable zsh magic functions, prevents slow paste
DISABLE_MAGIC_FUNCTIONS=true
# Source antidote (zsh plugin manager)
source $(brew --prefix)/opt/antidote/share/antidote/antidote.zsh
# Initialize plugins
# Plugins list: ~/.zsh_plugins.txt
@reinhardlinardi
reinhardlinardi / .zshrc-linux
Last active July 21, 2023 04:06
Linux zsh configuration file
# --- zsh settings ---
# Disable zsh magic functions, prevents slow paste
DISABLE_MAGIC_FUNCTIONS=true
# Source antidote (zsh plugin manager)
source ${ZDOTDIR:-~}/.antidote/antidote.zsh
# Initialize plugins
# Plugins list: ~/.zsh_plugins.txt
@reinhardlinardi
reinhardlinardi / .vimrc-mac
Created July 19, 2023 03:47
Mac vim configuration file
" Enable syntax highlighting
syntax on
" Show line numbers
set number
set numberwidth=1
" Enable auto indentation
set smartindent
set tabstop=4
@reinhardlinardi
reinhardlinardi / .vimrc-linux
Created July 19, 2023 03:45
Linux vim configuration file
" Enable syntax highlighting
syntax on
" Show line numbers
set number
set numberwidth=1
" Enable auto indentation
set smartindent
set tabstop=4