dotfiles/.local/bin/tools/open_at_video

8 lines
151 B
Bash
Executable File

#!/bin/sh
if echo $1 | grep -qv '^/'; then
absolute_path_file="$(pwd)/$1"
else
absolute_path_file="$1"
fi
$TERMINAL $FILE "${absolute_path_file%/*}"