forked from g1n/twtxt-c
Compare commits
2 Commits
1637c73cd0
...
6a251b4555
Author | SHA1 | Date |
---|---|---|
rick | 6a251b4555 | |
rick | ad738a4c61 |
9
twtxt-c
9
twtxt-c
|
@ -34,20 +34,17 @@ case $1 in
|
|||
-* | --*)
|
||||
usage; error_exit "unknown option $1" ;;
|
||||
init)
|
||||
read -p "Your desired nickname [$USER]: " nickname
|
||||
read -p "Your desired nickname [$USER]: " nick
|
||||
nick=${nick:-"$USER"}
|
||||
read -p "Type path to your twtxt [/home/$USER/twtxt.txt]: " path_to_twtxt
|
||||
twtxt=${path_to_twtxt:-"/home/$USER/twtxt.txt"}
|
||||
path_to_twtxt=${path_to_twtxt:-"/home/$USER/twtxt.txt"}
|
||||
echo "" >> $path_to_twtxt
|
||||
read -p "Type path to your twtxt config folder [/home/$USER/.config/twtxt-c/]: " config
|
||||
config=${config:-"/home/$USER/.config/twtxt-c/"}
|
||||
mkdir -p $config
|
||||
read -p "URL to twtxt [https://example.com/twtxt.txt]: " url
|
||||
url=${url:-"https://example.com/twtxt.txt"}
|
||||
printf "[twtxt]\n
|
||||
nick = %s\n
|
||||
twtfile = %s\n
|
||||
url = %s\n" "$nick" "$twtxt" "$url" >> $config
|
||||
printf "[twtxt]\n nick = %s\n twtfile = %s\n url = %s\n" "$nick" "$path_to_twtxt" "$url" >> $config/config
|
||||
;;
|
||||
tweet)
|
||||
export config=/home/g1n/.config/twtxt/config
|
||||
|
|
Loading…
Reference in New Issue