Giter Club home page Giter Club logo

Comments (1)

Aquarthur avatar Aquarthur commented on August 21, 2024 2

Hey @deadjdona ! This is meant to be a CLI tool, which is most useful for folks who are often using their terminal. If you prefer the website's interface, that's not a worry at all! That said, if you do want to use this tool, I'll try to cover some of what you need to know before continuing.

bash & zsh are two different shells that you can use to run the tool in. .bashrc (and .zshrc) are files that should exist in your home folder. When you start a new shell, you can find out what your home folder is by checking echo $HOME. .bashrc and .zshrc are executed when you start up a new instance of a shell. .bashrc gets executed when you start bash, and .zshrc gets executed when you start zsh.

Just to be clear, you only need one of these files depending on which shell you're using! Most Unix systems have bash as the default shell, so moving forward, I'll deal with .bashrc. The following would be almost exactly the same for zsh/.zshrc.

If you want URLSCAN_API_KEY and URLSCAN_DATA_DIR in your environment at all times, including it in either rc file is a great way to do it! If you don't have one yet, create a .bashrc in your home folder by running:

touch $HOME/.bashrc

Open it up in your favorite editor (if you use VSCode and have the CLI installed, just run code $HOME/.bashrc), and add the following lines:

# very basic example .bashrc/.zshrc file
export URLSCAN_API_KEY="insert your api key here"
export URLSCAN_DATA_DIR="/some/folder"

Now, open up a new shell (or run source $HOME/.bashrc) and check to see if the environment variables exist:

echo $URLSCAN_API_KEY
echo $URLSCAN_DATA_DIR

If they print something out, you're good to go! You can now use the urlscanio command without having to manually set the API key and data directory every time - they'll automatically be configured for you when bash starts up.

For a more complete guide on .bashrc and .zshrc, a quick Google will give you plenty of articles such as this one. Just know that before you know it, you can very quickly end up in a bit of a rabbit hole for shell scripting and setup 😁 It's worth learning though, in my opinion.

from urlscanio.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.