Created
October 4, 2022 16:33
-
-
Save johnjohnlin/f79d09d093447b616abf63f3a7ddaee4 to your computer and use it in GitHub Desktop.
My configuration backup
This file contains 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
[user] | |
name = Yu-Sheng Lin | |
email = johnjohnlys@gmail.com | |
[core] | |
editor = nvim | |
pager = | |
[push] | |
default = current | |
[color] | |
ui = auto | |
[color "branch"] | |
current = yellow bold | |
local = green bold | |
remote = cyan bold | |
[color "diff"] | |
meta = yellow bold | |
frag = magenta bold | |
old = red bold | |
new = green bold | |
whitespace = red reverse | |
[color "status"] | |
added = green bold | |
changed = yellow bold | |
untracked = red bold | |
[diff] | |
tool = nvimdiff | |
[difftool] | |
prompt = false | |
[alias] | |
br = branch | |
ci = commit | |
df = difftool | |
dfc = difftool --cached | |
l = log --oneline | |
lg = log --oneline --graph --decorate | |
ls = ls-files | |
lsf = "!git ls-files | grep -i" | |
co = checkout | |
rb = rebase | |
st = status -uno | |
sta = status | |
stb = status -s -b | |
[merge] | |
tool = vimdiff | |
[pull] | |
rebase = true | |
[init] | |
defaultBranch = master | |
[credential] | |
helper = store |
This file contains 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
export ZSH=/usr/share/oh-my-zsh | |
plugins=(git) | |
source $ZSH/oh-my-zsh.sh | |
# history | |
bindkey "^[[A" history-beginning-search-backward | |
bindkey "^[[B" history-beginning-search-forward | |
# PROMPT | |
export EDITOR='nvim' | |
export TERM='xterm-256color' | |
export PS1='%{$fg_bold[green]%}%n%{$reset_color%} %{$fg[cyan]%}%~%{$reset_color%} $(git_prompt_info) %{$fg_bold[white]%}%#%{$reset_color%} ' | |
export RPROMPT='%{$reset_color%}(%?)' | |
# custom settings | |
setopt NO_HUP | |
setopt correctall | |
# source /usr/share/doc/pkgfile/command-not-found.zsh | |
# source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh | |
alias vi='nvim' | |
alias hd='hexdump' | |
alias l='ls' | |
alias ll='ls -l' | |
alias lal='ls -al' | |
alias IP='ipython' | |
if [ -f "$HOME/.profile" ] ; then | |
source "$HOME/.profile" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment