Skip to content

Instantly share code, notes, and snippets.

View thiagolsfortunato's full-sized avatar
🏌️‍♂️

Thiago Fortunato thiagolsfortunato

🏌️‍♂️
View GitHub Profile
@thiagolsfortunato
thiagolsfortunato / .bashrc
Created August 4, 2020 14:45
My custom .bashrc for Ubuntu
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return ;;
esac
@thiagolsfortunato
thiagolsfortunato / ps1.sh
Last active May 18, 2021 13:08
PS1 Git Branch
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
# Configure PS1
PS1='\[\033[01;32m\][\[\033[01;36m\]./\W/\[\033[01;32m\]]\[\033[01;33m\]$(parse_git_branch)\[\033[01;39m\]\n\[\033[01;32m\]\$\[\033[00m\] '
@thiagolsfortunato
thiagolsfortunato / .gitconfig
Last active August 4, 2020 14:43
.gitconfig
[user]
email = thiagolsfortunato@mymail.com
name = thiagolsfortunato
[credential]
helper = cache --timeout=3600
[core]
excludesfile = /home/thiagofortunato/.gitignore
editor = /usr/bin/vim
[dude]
interval = 30
@thiagolsfortunato
thiagolsfortunato / .docker_aliases
Last active February 11, 2020 12:59
.docker_aliases
# shellcheck shell=sh
#docker
alias dk='docker'
alias dkb='docker build'
alias dkcrm='docker container rm'
alias dkcrmf='docker container rm -f'
alias dkex='docker exec -it'
alias dki='docker images'
alias dkif='docker images --filter reference='
@thiagolsfortunato
thiagolsfortunato / .kubectl_aliases
Last active August 9, 2020 11:06
.kubectl_aliases
# shellcheck shell=sh
# Copyright 2019 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@thiagolsfortunato
thiagolsfortunato / .git_aliases
Last active January 13, 2020 16:14
.git_aliases
# shellcheck shell=sh
alias {gadd,ga}='git add '
alias {gbra,gb}='git branch'
alias {gco,go}='git checkout'
alias {gcob,gob}='git checkout -b '
alias {gcom,gc}='git commit'
alias {gcomam,gcam}='git commit --amend'
alias {gpul,gpl}='git pull '
alias {gpus,gps}='git push '
alias {gpusf,gpsf}='git push -f'
@thiagolsfortunato
thiagolsfortunato / .bash_aliases
Last active August 4, 2020 14:42
my person .bash_aliases
# shellcheck shell=sh
alias ....='cd ../../ ..'
alias ...='cd ../..'
alias ..='cd ..'
alias {ack,ak}='ack-grep'
alias c='clear'
alias cp="cp -i"
alias cs='clear;ls'
alias df='df -h' # human-readable sizes
alias egrep='egrep --colour=auto'
@thiagolsfortunato
thiagolsfortunato / .bashrc
Last active July 10, 2020 16:23
my custom manjaro .bashrc
# shellcheck shell=bash
# ~/.bashrc
#
[[ $- != *i* ]] && return
colors() {
local fgc bgc vals seq0
printf "Color escapes are %s\n" '\e[${value};...;${value}m'
alias cs='clear;ls'
alias egrep='egrep --colour=auto'
alias fgrep='fgrep --colour=auto'
alias grep='grep --colour=auto'
alias h='history'
alias home='cd ~/'
alias k='kill'
alias ll='ls -la'
alias c='clear'
alias ls='ls --color'
set number
set tabstop=4
set showcmd
set cursorline
set hlsearch
set ignorecase
set autoindent
set showmatch
syntax on