Betty Setup
Betty Setup
All your scripts should be exactly two lines long ($ wc -l file should print 2)
More Info
Betty linter
emacs or vi a new file called betty, and copy the script below:
#!/bin/bash
BIN_PATH="/usr/local/bin"
BETTY_STYLE="betty-style"
BETTY_DOC="betty-doc"
exit 1
fi
for argument in "$@" ; do
${BIN_PATH}/${BETTY_STYLE} "$argument"
${BIN_PATH}/${BETTY_DOC} "$argument"
done
Once saved, exit file and change permissions to apply to all users with chmod a+x betty
Move the betty file into /bin/ directory or somewhere else in your $PATH with sudo mv betty
/bin/
You can now type betty <filename> to run the Betty linter!
0. Create and setup your Git and GitHub account
Step 0 - Create an account on GitHub [if you do not have one already]
Step 1 - Create a Personal Access Token on Github
To have access to your repositories and authenticate yourself, you need to create a Personal
Access Token on Github.
You can follow this tutorial to create a token.
Once it’s created, you should have a token that looks like this:
Name: alx-zero_day
Description: I'm now a ALX Student, this is my first repository as a full-stack
engineer
Public repo
No README, .gitignore, or license
root@896cf839cf9a:/# cd alx-zero_day/
root@896cf839cf9a:/alx-zero_day#
Create the file README.md with the content My first readme. Tips
Add this new file to git, commit the change with this message “My first commit” and push to
the remote server / origin
To https://github.com/{YOUR_USERNAME}/alx-zero_day.git
* [new branch] master -> master
Good job!
You pushed your first file in your first repository of the first task of your first ALX School project.
You can now check your repository on GitHub to see if everything is good.