Skip to content

Instantly share code, notes, and snippets.

View mateushnsoares's full-sized avatar
🚀
Always looking for the next level

Mateus Henrique mateushnsoares

🚀
Always looking for the next level
View GitHub Profile
[user]
email = [email protected]
name = mateushnsoares
[alias]
st = status -sb
sf = show --name-only
lg = log --pretty=format:'%Cred%h%Creset %C(bold)%cr%Creset %Cgreen<%an>%Creset %s' --max-count=30
incoming = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' ..@{u})
outgoming = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' @{u}..)
unstage = reset HEAD --
@mateushnsoares
mateushnsoares / xdg-open
Created September 20, 2020 00:16
linux /usr/bin/xdg-open file
#!/bin/sh
#---------------------------------------------
# xdg-open
#
# Utility script to open a URL in the registered default application.
#
# Refer to the usage() function below for usage.
#
# Copyright 2009-2010, Fathi Boudra <[email protected]>
# Copyright 2009-2010, Rex Dieter <[email protected]>
# 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="/home/mateus/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
map q :quit<CR> " Shortcut to quit editor
map <C-b> :NERDTreeToggle<CR> " Shortcut to toogle NERDTree (plugin)
" Add shortcuts like ctrl+s to save, ctrl+c to copy etc
" Need of gvim instaled but run in vim
source $VIMRUNTIME/mswin.vim
behave mswin
" Numbers
highlight LineNr ctermfg=gray