Skip to content

Instantly share code, notes, and snippets.

View jdugarte's full-sized avatar

Jesus Dugarte jdugarte

View GitHub Profile
@jdugarte
jdugarte / antigen.zsh
Last active June 3, 2024 15:38
.zsh/antigen.zsh
source /opt/homebrew/share/antigen/antigen.zsh
antigen use oh-my-zsh
# Bundles from the default repo (robbyrussell's oh-my-zsh).
antigen bundle asdf
# brew install asdf
antigen bundle brew
antigen bundle 1995parham/buffalo.zsh@main
antigen bundle bundler
@jdugarte
jdugarte / starship.toml
Last active May 26, 2024 16:18
~/.config/starship.toml
add_newline = true
format = "(\\[$git_branch$git_status$git_state$git_delta\\] )$directory[>](bright-green) "
right_format = "\\[ $status$cmd_duration$time \\]"
[directory]
format = '[$path ]($style)'
style = 'bright-yellow'
truncation_length = 0
repo_root_style = 'bright-green'
before_repo_root_style = 'bright-blue'
@jdugarte
jdugarte / gist:bdfe4c4cf58a280cb58537b8a02e56ce
Created January 26, 2023 16:50
TextMate - Copy current file relative path
#!/usr/bin/env bash
[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] && . "${TM_SUPPORT_PATH}/lib/bash_init.sh"
TM_PROJECT_DIRECTORY="$TM_PROJECT_DIRECTORY/"
echo -n "${TM_FILEPATH#$TM_PROJECT_DIRECTORY}" | pbcopy
echo 'Relative path copied to clipboard: '"${TM_FILEPATH#$TM_PROJECT_DIRECTORY}"
excludeInFolderSearch = "{$excludeInFolderSearch,$extraExcludes,log,tmp,bin,public/system,.keep,.git,.DS_Store,coverage,vendor/assets,node_modules,var,client/chrome-ext/dist,client/web_app/dist,*.map,*.svg,*.pem}"
excludeInFileChooser = "{$exclude,$excludeInFolderSearch}"
excludeFilesInBrowser = "{$excludeFiles,.DS_Store}"
excludeFiles = "{$excludeFiles,.git,.DS_Store}"
include = "{$include,.*}"
softTabs = true
tabSize = 2
@jdugarte
jdugarte / .zshrc
Last active June 5, 2024 23:59
~/.zshrc
source ~/.zsh/antigen.zsh
alias cd..='cd ..'
alias cd...='cd ../..'
# ruby
__be() {
if [ -f "bin/$1" ]; then
"bin/$@"
else