santiago / Upgrade snac to stable

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 1749264724
Upgrade snac to latest stable version using the tags
1 #!/usr/bin/env bash
2
3 #Pre existing cloned repo
4 cd $HOME/snac2
5
6 SNAC_USER=snac
7 SNAC_DATA=/home/snac/data
8
9 separator() {
10 printf '=%.0s' $(seq $(tput cols))

santiago / vv.sh - vim or sudo vim

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 1747056282
Bash command to edit file with nvim with my user or sudo if necessary to write the file. Use config for my user with root (will download modules again)
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)
Новее Позже