Skip to content

Instantly share code, notes, and snippets.

Avatar

João Serpa jserpapinto

  • Porto, Portugal
View GitHub Profile
@jserpapinto
jserpapinto / git_remove_tracking.sh
Created Jun 5, 2020
GIT - Remove tracking branches no longer on remote
View git_remove_tracking.sh
git fetch -p && for branch in $(git branch -vv | grep ': gone]' | awk '{print $1}'); do git branch -D $branch; done
@jserpapinto
jserpapinto / i3config
Created Apr 14, 2020
Manjaro - i3 config (~/.i3/config)
View i3config
# Changes:
# * bind 9 key to 9 workspace
# * prntscrn copy to clipboard
# * use py3status
# i3 config file (v4)
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
# Set mod key (Mod1=<Alt>, Mod4=<Super>)
set $mod Mod4
@jserpapinto
jserpapinto / i3status.conf
Created Apr 14, 2020
Manjaro - i3status + py3status config.
View i3status.conf
# Use this in path /etc/i3status.conf or ~/.i3/i3status.conf or ~/.config/i3/i3status.conf
# This are default manjaro i3status config with a little extra py3status config.
# This must be called by py3status in ~/.i3/config such as:
# status_command py3status -c /etc/i3status.conf # -c can be omitted.
#
# Added by jserpa:
# * `external_script vpn_info`
# --------------------- " --------------------- #
# i3status configuration file.
@jserpapinto
jserpapinto / i3-config
Last active Aug 15, 2019
i3wm config file
View i3-config
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
@jserpapinto
jserpapinto / init.vim
Created Aug 9, 2019
NeoVim ~/.config/nvim/init.vim with vim-plug
View init.vim
let mapleader=" "
nnoremap <SPACE> <Nop>
set nocompatible " be iMproved, required
filetype off " required
call plug#begin()
Plug 'scrooloose/nerdTree'
nmap <C-n> :NERDTreeToggle<CR>
@jserpapinto
jserpapinto / tmux.conf
Last active Aug 9, 2019
Tmux configuration
View tmux.conf
# change default prefix (C-b) to C-space
unbind C-space
set -g prefix C-space
bind C-space send-prefix
# Improve colors
set -g default-terminal 'screen-256color'
# Set scrollback buffer to 10000
set -g history-limit 10000
@jserpapinto
jserpapinto / .vimrc
Last active Jun 21, 2019
~/.vimrc default configAwsome vim configs -> https://github.com/amix/vimrc
View .vimrc
let mapleader=" "
nnoremap <SPACE> <Nop>
set nocompatible " be iMproved, required
filetype off " required
" Vundle begin
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim' " let Vundle manage Vundle, required
You can’t perform that action at this time.