Last active
March 30, 2024 01:15
-
-
Save dannluciano/5d330b4c7a52b36096797d166861015e to your computer and use it in GitHub Desktop.
Core Shell Configs
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] | |
email = dannluciano@gmail.com | |
name = Dann Luciano | |
[filter "lfs"] | |
smudge = git-lfs smudge -- %f | |
process = git-lfs filter-process | |
required = true | |
clean = git-lfs clean -- %f | |
[alias] | |
st = status -sb | |
lg = git log --all --graph --decorate --oneline --abbrev-commit | |
co = checkout | |
cm = commit | |
ac = !git add -A && git commit | |
tags = tag -l | |
branches = branch -a | |
remotes = remote -v |
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
-- Automatically format output based on result length and screen | |
\x auto | |
-- Prettier nulls | |
\pset null '#' | |
-- Save history based on database name | |
\set HISTFILE ~/.psql_history- :DBNAME | |
-- Turn on automatic query timing | |
\timing |
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
set -g default-terminal screen-256color | |
set -g terminal-overrides 'screen*:smcup@:rmcup@' | |
set -g history-limit 5000 | |
unbind % | |
bind | split-window -h | |
bind _ split-window -v | |
bind r source-file ~/.tmux.conf \; display '~/.tmux.conf sourced' | |
bind e new-window -n '~/.tmux.conf.local' "sh -c '\${EDITOR:-vim} ~/.tmux.conf && tmux source ~/.tmux.conf && tmux display \"~/.tmux.conf sourced\"'" | |
setw -g monitor-activity on | |
set -g visual-activity on | |
set -g base-index 1 # start windows numbering at 1 | |
setw -g pane-base-index 1 # make pane numbering consistent with windows | |
setw -g automatic-rename on # rename window to reflect current program | |
set -g renumber-windows on # renumber windows when a window is closed | |
set -g set-titles on # set terminal title | |
set -g display-panes-time 800 # slightly longer pane indicators display time | |
set -g display-time 1000 # slightly longer status messages display time | |
set -g status-interval 10 # redraw status line every 10 seconds |
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
# zmodload zsh/zprof | |
autoload -U colors; colors | |
autoload -U promptinit; promptinit | |
setopt prompt_subst | |
setopt menucomplete | |
function activate() { | |
FILE=$PWD/env_vm/bin/activate | |
test -f $FILE && source $FILE 2> /dev/null | |
FILE=$PWD/env/bin/activate | |
test -f $FILE && source $FILE 2> /dev/null | |
} | |
export PATH="$HOME/.local/bin:/Users/dannluciano/.local/share/containers/podman-desktop/extensions-storage/compose/bin:$PATH" | |
export LC_CTYPE=en_US.UTF-8 | |
export LC_ALL=en_US.UTF-8 | |
alias ls="ls -G" | |
alias ac="activate" | |
alias gateway="netstat -nr | grep '^default'" | |
alias ip="wget -qO- 'ip-api.com/line/?fields=query'" | |
alias netisback="until ping -W1 -c1 8.8.8.8; do sleep 10; done && say the internet is back" | |
alias netspeed="wget http://cachefly.cachefly.net/1mb.test -O /dev/null && wget http://cachefly.cachefly.net/100mb.test -O /dev/null" | |
alias openports="lsof -i | grep ESTABLISHED" | |
alias socks="ssh -fND 443 devops@vpn.dannluciano.com.br" | |
alias cmatrix="cmatrix -ab" | |
alias dnsreset="sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder" | |
alias dnslookup="dscacheutil -q host -a name" | |
alias tunnelup="curl https://tunnel.pyjam.as/8080 > tunnel.conf && wg-quick up ./tunnel.conf" | |
alias tunneldown="wg-quick down ./tunnel.conf" | |
alias upgrade="brew update && brew upgrade && sudo softwareupdate --install --all" | |
alias cleanup="brew cleanup --prune=all && npm cache clean --force && docker system prune --all -f" | |
# alias docker="podman" | |
eval $(/opt/homebrew/bin/brew shellenv) | |
if type brew &>/dev/null; then | |
FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH | |
autoload -Uz compinit | |
compinit | |
fi | |
# if [ -z $TMUX ]; then | |
# tmux new -A -s default | |
# fi | |
eval "$(starship init zsh)" | |
# bun completions | |
[ -s "/Users/dannluciano/.bun/_bun" ] && source "/Users/dannluciano/.bun/_bun" | |
# bun | |
export BUN_INSTALL="$HOME/.bun" | |
export PATH="$BUN_INSTALL/bin:$PATH" | |
# [ -f ~/.inshellisense/key-bindings.zsh ] && source ~/.inshellisense/key-bindings.zsh | |
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES | |
export PATH="/opt/homebrew/opt/ruby/bin:$PATH" | |
export PATH="/opt/homebrew/lib/ruby/gems/3.3.0/bin/:$PATH" |
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
{ | |
// "window.titleBarStyle": "native", | |
"workbench.colorTheme": "Dracula Pro", | |
"editor.fontSize": 16, | |
"editor.fontFamily": "'Fira Coda Nerd Font', Menlo, Monaco, 'Courier New', monospace", | |
"editor.lineHeight": 1.8, | |
"editor.rulers": [80, 120], | |
"editor.renderLineHighlight": "gutter", | |
"editor.minimap.enabled": false, | |
"editor.semanticHighlighting.enabled": false, | |
"breadcrumbs.enabled": false, | |
"explorer.compactFolders": false, | |
"explorer.excludeGitIgnore": true, | |
"files.exclude": { | |
"env/": true, | |
"__pycache__/": true, | |
}, | |
"git.autofetch": true, | |
"security.workspace.trust.untrustedFiles": "open", | |
"git.openRepositoryInParentFolders": "never", | |
"workbench.editorAssociations": { | |
"*.vsdx": "default" | |
}, | |
"emmet.includeLanguages": { | |
"django-html": "html" | |
}, | |
"files.associations": { | |
"**/*.html": "html", | |
"**/templates/**/*.html": "django-html", | |
"**/templates/**/*": "django-txt", | |
"**/requirements{/**,*}.{txt,in}": "pip-requirements", | |
".env.*": "dotenv" | |
}, | |
"explorer.confirmDragAndDrop": false, | |
"[python]": { | |
"editor.codeActionsOnSave": { | |
"source.fixAll": "always", | |
"source.organizeImports": "always" | |
} | |
}, | |
"editor.codeActionsOnSave": {}, | |
"git.enableSmartCommit": true, | |
"[typescript]": { | |
"editor.defaultFormatter": "vscode.typescript-language-features" | |
}, | |
"[html]": { | |
"editor.defaultFormatter": "vscode.html-language-features" | |
}, | |
"[css]": { | |
"editor.defaultFormatter": "vscode.css-language-features" | |
}, | |
"explorer.confirmDelete": false, | |
"go.toolsManagement.autoUpdate": true, | |
"window.commandCenter": false, | |
"javascript.suggest.autoImports": true, | |
"javascript.updateImportsOnFileMove.enabled": "always", | |
"typescript.suggest.autoImports": true, | |
"typescript.updateImportsOnFileMove.enabled": "always", | |
"[javascriptreact]": { | |
"editor.defaultFormatter": "vscode.typescript-language-features" | |
}, | |
"[json]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"[javascript]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"[scss]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"[django-html]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"explorer.fileNesting.enabled": true, | |
"explorer.fileNesting.patterns": { | |
"package.json": ".eslint*, prettier*, tsconfig*, vite*, pnpm-lock*, bun.lockb, nest*", | |
"tailwind.config.js": "tailwind.config*, postcss.config*", | |
".env.local": ".env*", | |
".env": ".env*" | |
}, | |
"[jsonc]": { | |
"editor.defaultFormatter": "vscode.json-language-features" | |
}, | |
"workbench.iconTheme": "symbols", | |
"symbols.hidesExplorerArrows": false, | |
"workbench.layoutControl.enabled": false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment