🏌️♂️
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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\] ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
email = [email protected] | |
name = thiagolsfortunato | |
[credential] | |
helper = cache --timeout=3600 | |
[core] | |
excludesfile = /home/thiagofortunato/.gitignore | |
editor = /usr/bin/vim | |
[dude] | |
interval = 30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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=' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# shellcheck shell=bash | |
# ~/.bashrc | |
# | |
[[ $- != *i* ]] && return | |
colors() { | |
local fgc bgc vals seq0 | |
printf "Color escapes are %s\n" '\e[${value};...;${value}m' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set number | |
set tabstop=4 | |
set showcmd | |
set cursorline | |
set hlsearch | |
set ignorecase | |
set autoindent | |
set showmatch | |
syntax on |