santiago / vv.sh - vim or sudo vim
0 curtidas
0 bifurcações
1 arquivos
Última atividade
| 1 | #!/bin/bash |
| 2 | |
| 3 | vv() { |
| 4 | if [ $# -eq 0 ]; then |
| 5 | echo "Usage: vv <file>" |
| 6 | echo "Will edit with current user or sudo if needed but using nvim config of this user" |
| 7 | return 1 |
| 8 | fi |
| 9 | |
| 10 | vpath=$(which $EDITOR) |
Próximo
Anterior