Ver código fonte

shrc: Add new function root

pull/1/head
10sr 9 anos atrás
pai
commit
7bfe3af653
1 arquivos alterados com 9 adições e 0 exclusões
  1. +9
    -0
      shrc

+ 9
- 0
shrc Ver arquivo

@@ -433,6 +433,15 @@ cd(){
builtin cd "$@" && pwd
}

root(){
if test "`git rev-parse --is-inside-work-tree 2>/dev/null`" = true
then
cd "`git rev-parse --show-toplevel`"
else
cd /
fi
}

# pad
alias pad=notepad
__safe_alias pad=gedit


Carregando…
Cancelar
Salvar