This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rtmux() { | |
echo -ne "\033]0;mcg@$1\007" # Set window title | |
ssh $1 -t 'tmux attach -t mcg || tmux -f ~/mcg-tmux.conf --login new-session -s mcg' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
VIMFIFO=$1 | |
if [ ! -p "$VIMFIFO" ]; then | |
rm -f "$VIMFIFO" && mkfifo "$VIMFIFO" | |
fi | |
trap "rm -f '$VIMFIFO'" SIGINT SIGKILL SIGTERM SIGSTOP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dokku@vps451130:~$ echo $PATH | |
/home/dokku/bin:/home/dokku/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/snap/bin | |
dokku@vps451130:~$ which nginx | |
dokku@vps451130:~$ nginx -v | |
Command 'nginx' is available in '/usr/sbin/nginx' | |
The command could not be located because '/usr/sbin' is not included in the PATH environment variable. | |
This is most likely caused by the lack of administrative privileges associated with your user account. | |
nginx: command not found |