Giter Site home page Giter Site logo

dsambrano / local_functions Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.97 MB

Here are a list of functions and programs that I have made, that are not available to the general public (mostly just because I am to lazy to set up the repos in pip etc).

Shell 14.19% Python 84.25% HTML 1.57%

local_functions's Introduction

My local functions

Here are a list of functions and programs that I have made, that are not available to the general public (mostly just because I am to lazy to set up the repos in pip etc).

I plan to make several functions here and you may or may not want all of them. For those that want them all, the install.sh script should work. Otherwise you can follow the example below for how to install individual functions.

Installing Individual Functions/Packages

First up you need to update your path, so you can run the functions regardless of where you are on your computer. Below are a few commands to make a ~/.local/bin folder and add that to your PATH for the current session as well as adding it to your ~/.zshrc file so that it permanently gets added to your path. Bash users should change ~/.zshrc to ~/.bashrc.

mkdir ~/.local/bin
export PATH="$HOME/.local/bin:$PATH"
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc

Next, you will need to move over the relevant functions into your ~/.local/bin/ folder. This can be done with mv or preferrably a symbolic link, that way you can have access to any updates I make in the future. Below is an an example of using a symbolic link.

ln -s ~/git_repos/local_functions/shell/change_wallpaper.sh ~/.local/bin

Alternatively, for python packages specifically, they can be installed through pip. Below is the basic structure for installing a package. (Note, you still need to update your path for python packages as well).

python -m pip install -e PACKAGENAME

local_functions's People

Contributors

dsambrano avatar

Watchers

 avatar

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.