Skip to content

Instantly share code, notes, and snippets.

View fcaldera's full-sized avatar

Fernando Caldera fcaldera

View GitHub Profile
@fcaldera
fcaldera / com.local.KeyRemapping.plist
Last active May 12, 2023 12:13
Key remapping for MacOS
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.local.KeyRemapping</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/hidutil</string>
<string>property</string>
@fcaldera
fcaldera / set_fish_colors.fish
Last active May 19, 2020 19:29
Change fish colors script
set -U fish_color_autosuggestion brblack
set -U fish_color_cancel -r
set -U fish_color_command brgreen
set -U fish_color_comment brmagenta
set -U fish_color_cwd green
set -U fish_color_cwd_root red
set -U fish_color_end brmagenta
set -U fish_color_error brred
set -U fish_color_escape brcyan
set -U fish_color_history_current --bold
@fcaldera
fcaldera / screenshotTable.sh
Created May 19, 2020 09:46
Echo colors to the terminal
#!/bin/bash
#
# This file echoes a bunch of color codes to the
# terminal to demonstrate what's available. Each
# line is the color code of one forground color,
# out of 17 (default + 16 escapes), followed by a
# test use of that color on all nine background
# colors (default + 8 escapes).
#
# Copied from http://tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html
@fcaldera
fcaldera / settings.json
Created February 14, 2020 09:21
VS Code Settings
{
"workbench.colorTheme": "Night Owl",
"editor.tabSize": 2,
"editor.fontFamily": "Hasklig, Menlo, Monaco, 'Courier New', monospace",
"window.zoomLevel": 0,
"editor.fontSize": 14,
"terminal.integrated.fontFamily": "SauceCodePro Nerd Font Mono",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
@fcaldera
fcaldera / Quiet Light.itermcolors
Last active May 13, 2021 12:36
A port of Quiet Light VSCode Theme for iTerm2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.20000000298023224</real>
@fcaldera
fcaldera / .zshrc
Last active July 4, 2024 15:41
zsh configuration with zplug
export ZPLUG_HOME=/usr/local/opt/zplug
# Essential
source $ZPLUG_HOME/init.zsh
# Async for zsh, used by pure
zplug "mafredri/zsh-async", from:github, defer:0
# oh-my-zsh
zplug "lib/completion", from:oh-my-zsh
function print_fish_colors --description 'Shows the various fish colors being used'
set -l clr_list (set -n | grep fish | grep color | grep -v __)
if test -n "$clr_list"
set -l bclr (set_color normal)
set -l bold (set_color --bold)
printf "\n| %-38s | %-38s |\n" Variable Definition
echo '|¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|'
for var in $clr_list
set -l def $$var
set -l clr (set_color $def ^/dev/null)
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/fernando/.oh-my-zsh"
POWERLEVEL9K_MODE="nerdfont-complete"
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
@fcaldera
fcaldera / .gitconfig
Last active July 26, 2022 14:55
Common git configuration
[user]
name = Fernando Caldera
email = fer.caldera@gmail.com
[color]
ui = auto
[pull]
rebase = true
[alias]
co = checkout
br = branch