Skip to content

Instantly share code, notes, and snippets.

View sebastianvera's full-sized avatar

Sebastián Vera sebastianvera

View GitHub Profile
#!/bin/bash
#
# Simple script to login via ssh to google instances
#
# Usage: gssh [--list] INSTANCE_NAME
GCLOUDCMD=$( which gcloud )
if [ -z "$GCLOUDCMD" ]; then
echo "gcloud not found"
let mapleader = " "
" Install vundle
let shouldInstallBundles = 0
if !filereadable($HOME . "/.config/nvim/autoload/plug.vim")
echo "~≥ Installing vim-plug \n"
silent !curl -fLo $HOME/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
let shouldInstallBundles = 1
endif
@sebastianvera
sebastianvera / .tmux.conf
Last active December 29, 2020 19:42
My tmux config, heavy influenced by https://github.com/simonsmith/dotfiles
# tmux prefix
unbind C-b
set -g prefix C-a
# set -g default-terminal "xterm-256color"
set -g default-terminal "screen-256color"
set -ga terminal-overrides ",xterm-256color:Tc"
# Enable true color - tmux 2.2+
# https://deductivelabs.com/en/2016/03/using-true-color-vim-tmux/
# set-option -ga terminal-overrides ",xterm-256color:Tc"
###########################
# Configuration
###########################
# increase scroll-back history
set -g history-limit 5000
# use vim key bindings
setw -g mode-keys vi
@sebastianvera
sebastianvera / init.vim
Last active December 27, 2020 21:46
Vim config
let mapleader = " "
" Install vundle
let shouldInstallBundles = 0
if !filereadable($HOME . "/.config/nvim/autoload/plug.vim")
echo "~≥ Installing vim-plug \n"
silent !curl -fLo $HOME/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
let shouldInstallBundles = 1
endif

Keybase proof

I hereby claim:

  • I am sebastianvera on github.
  • I am sebastianvera (https://keybase.io/sebastianvera) on keybase.
  • I have a public key ASCRufEycpiGNUxUPuv6SB6Jxw_DEwKNAs5Q7aPc7pcthQo

To claim this, I am signing this object:

@sebastianvera
sebastianvera / init.vim
Created May 22, 2018 17:13
Personal nvim config on my linux machine
let mapleader = " "
" Install vundle
let shouldInstallBundles = 0
if !filereadable($HOME . "/.config/nvim/autoload/plug.vim")
echo "~≥ Installing vim-plug \n"
silent !curl -fLo $HOME/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
let shouldInstallBundles = 1
endif
###########################
# Configuration
###########################
# use 256 term for pretty colors
set -g default-terminal 'xterm-256color'
# increase scroll-back history
set -g history-limit 5000
@sebastianvera
sebastianvera / init.vim
Last active May 22, 2018 14:51
Personal Neovim config for linux
let mapleader = " "
" Install vundle
let shouldInstallBundles = 0
if !filereadable($HOME . "/.config/nvim/autoload/plug.vim")
echo "~≥ Installing vim-plug \n"
silent !curl -fLo $HOME/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
let shouldInstallBundles = 1
endif
-- Official docs: http://www.postgresql.org/docs/9.3/static/app-psql.html
-- Unofficial docs: http://robots.thoughtbot.com/improving-the-command-line-postgres-experience
-- Don't display the "helpful" message on startup.
\set QUIET 1
\pset null '[NULL]'
-- http://www.postgresql.org/docs/9.3/static/app-psql.html#APP-PSQL-PROMPTING
-- \set PROMPT1 '%[%033[38;5;214m%]%M[%033[0m% %n@%/%R%[%033[0m%]%# '
\set PROMPT1 '%[%033[38;5;203m%]%M%[%033[0m%] %n@%/%R%[%033[0m%]%# '