Created
December 1, 2016 23:27
-
-
Save AllenBlank/90d3ee3792c829137cec8b4cd18e2879 to your computer and use it in GitHub Desktop.
Small script to give me a readable screen window name
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 | |
# takes an input of a path and opens a screen with nice edit in it with the title of the file name | |
IFS='/' read -ra FILEPATH <<< "$1" | |
FILENAME=${FILEPATH[-1]} | |
screen -t $FILENAME ne $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment