santiago / tmuxjail.sh

0 j'aimes
0 forks
1 fichiers
Dernière activité 1757241729
Script to pass as SSH command to open jail directly from host
1 #!/usr/bin/env zsh
2
3 if [ -z "$1" ]; then
4 echo "Usage: $0 <jailname>"
5 exit 1
6 fi
7
8 JAILT="jail-$1"
9 JAIL="$1"

santiago / vv.sh - vim or sudo vim

0 j'aimes
0 forks
1 fichiers
Dernière activité 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)
Plus récent Plus ancien