xaizek / xscripts (License: Apache-2.0) (since 2020-06-28)
Small collection of some scripts I find useful.
Commit ce1fa4ddabb395492270841f4a483de8e81f8651

gt-do: handle absence of $EDITOR variable
Author: xaizek
Author date (UTC): 2020-06-30 22:18
Committer name: xaizek
Committer date (UTC): 2020-06-30 22:18
Parent(s): e234be9f38c8545b0ce24100183901493adc9077
Signing key: 99DC5E4DB05F6BE2
Tree: 84dcdb4a20e06f276f5844473db1d231d36182c1
File Lines added Lines deleted
gt-do 1 1
File gt-do changed (mode: 100755) (index fec71cc..fe2780d)
... ... if [ $# -eq 2 ] && ( [ "$1" = "-e" ] || [ "$1" = "--edit" ] ); then
80 80 fi fi
81 81
82 82 actionfile="$actions_dir/$2" actionfile="$actions_dir/$2"
83 exec $EDITOR "$actionfile"
83 exec ${EDITOR:-vim} "$actionfile"
84 84 fi fi
85 85
86 86 if [ "${1:0:1}" = "-" ]; then if [ "${1:0:1}" = "-" ]; then
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/xscripts

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/xscripts

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master