Skip to content

Instantly share code, notes, and snippets.

View charlesfranciscodev's full-sized avatar

Charles-A. Francisco charlesfranciscodev

View GitHub Profile
# default editor
export EDITOR=nano
export VISUAL="$EDITOR"
# CDPATH
export CDPATH=.\
:${HOME}\
:${HOME}/code\
function parse_git_branch() {
@charlesfranciscodev
charlesfranciscodev / git.md
Last active August 29, 2024 15:45
git commands
# STAGE & SNAPSHOT
git config --global alias.st status
git config --global alias.a "add ."
git config --global alias.ci commit

# BRANCH & MERGE
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.lg "log --graph --oneline --decorate --all"
@charlesfranciscodev
charlesfranciscodev / settings.json
Last active April 1, 2024 01:40
VS Code Settings
{
"[python]": {
"editor.tabSize": 4,
"editor.insertSpaces": true
},
"editor.fontFamily": "Source Code Pro, DejaVu Sans Mono, Fira Code",
"editor.fontSize": 18,
"editor.minimap.enabled": false,
"editor.multiCursorModifier": "ctrlCmd",
"editor.renderWhitespace": "boundary",
export EDITOR=nano
export VISUAL="$EDITOR"
# git
autoload -Uz compinit && compinit
function parse_git_branch() {
git branch 2> /dev/null | sed -n -e 's/^\* \(.*\)/[\1]/p'
}
COLOR_DEF=$'%f'