Coder Social home page Coder Social logo

ehusby / shell-utils Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 1.0 813 KB

Helpful tools for working in the Linux terminal (primarily Bash), and shortcuts for running scripts in Windows command line environments.

License: MIT License

Shell 85.21% Python 7.96% Batchfile 5.01% VBScript 0.33% Vim Script 1.49%
shell-scripting bashrc-configs bash-scripting windows-cmd conda-environment osgeo4w linux-terminal python-scripting bash bashrc screenrc inputrc windows-file-explorer

shell-utils's Introduction

shell-utils

Helpful tools for working in the Linux terminal (primarily Bash), and shortcuts for running scripts in Windows command line environments.

Get Git

If you don't already have a GitHub account, sign up for one (it's free).

When you want to update a code repository you've downloaded ("cloned" is the Git term) to your local machine, best practice is to utilize the git program through git clone and git pull commands. GitHub can leverage an SSH key that authorizes these interactions between the "remote" online repository and your local machine. This SSH key is unique to the local machine, and will need to be tied to your GitHub account.

Why go to the trouble of setting up SSH keys when you could instead download the repo over HTTPS or, easier yet, use the "Download ZIP" button?

  • When you want to pull or commit changes to the code, a downloaded ZIP won't be too helpful as your local repository has no connection to your GitHub account.
  • Some systems with access restrictions can't interact over HTTPS, and SSH is the only option to have the local repo connected to your GitHub account.

Installing Git

Most Linux distributions come with Git already installed (you can check by running git in your terminal). Most Windows setups will not come with Git installed. You can download Git for your operating system here.

Setup SSH keys

With Git now installed, we can generate an SSH key on your local machine and tie it to your GitHub account. If you're on Windows, open "Git Bash" to perform the following steps.

  1. Generate an SSH key on your local machine by running ssh-keygen -t ecdsa -b 256. I'd recommend setting a short and memorable passphrase that is similar to a bank PIN in complexity, but a bit stronger (please don't actually use your bank PIN).
  2. Run cat ~/.ssh/id_ecdsa.pub to print your public SSH key in the terminal. This is the key we need to give to GitHub.
  3. Go to the "SSH and GPG keys" section of your GitHub account settings, and click the "New SSH key" button. Now copy and paste the key that was printed in your terminal into the "Key" box. In the "Title" box, give a concise name for your local machine.

Next steps

If you're on Linux, there are additional steps you should take to configure your Bash shell.
If you're on Windows, follow this guide to enable the shortcuts and learn how to use them.

shell-utils's People

Contributors

ehusby avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

sri7meh

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.