mkdir $HOME/.config/zsh
cd $HOME/.config/zsh
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.zsh -o _git
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -O
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh -O
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Z Shell Reference: https://zsh.sourceforge.io/Intro/intro_toc.html | |
# ----------------------------------------------------------------------------- | |
# config location | |
XDG_CONFIG_HOME=~/.config | |
# Keep command history | |
# Search history with ctrl-R | |
# use !! to repeat last command | |
HISTFILE=${ZDOTDIR:-$HOME}/.zsh_history | |
# limit how many commands are stored in the session and in the history file | |
SAVEHIST=5000 |
You are using git
as a backup tool and wish to both push
and pull
between
two local repos, the second of which is a clone of the first.
For example, you may initialize a Markdown notes
repo on your laptop's startup
drive. You author, save (and version) your notes primarily in this repo, but
also "backup" the content by cloning the repo to an external drive. At
intervals, you pull changes from the first repo into the second (either
manually, or as a cron
job).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" (N)Vim Configuration File | |
" vim : place in $HOME/.vimrc | |
" nvim : place in $HOME/.config/nvim/init.vim | |
" $ ln -s $HOME/.config/nvim/init.vim $HOME/.vimrc | |
" General settings | |
" https://learnvimscriptthehardway.stevelosh.com/ | |
" --------------------------------------------------------------------------- | |
" drop vi support - kept for vim compatibility but not needed for nvim | |
" Probably not needed with Vim 8+ | |
"set nocompatible |