Skip to content

About

My prviate helpers method for mac

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mac-bash-commands

This repo has some helpers (mainly python related) to avoid writting boilerplate code.

Installation:

  • inside a desired directory clone the repo:

    • git clone https://github.com/KantiCodes/mac-bash-commands.git
  • setup environmental variables inside .../mac-bash-commands/env-vars file, for example:

    PROJ_PATH=~/Desktop/Projects/mac-bash-commands  # Location where you cloned the repo
    GOTO_PATH=~/Desktop/Projects/  # Default Directory of goto function with all of you repositories
    
  • To use my tool edit the ~/.zprofile so that it runs main.sh.

    1. run nano ~/.zprofile

    2. paste the following line to it (replace the location of the repo)

      source /location-of-the-repo/mac-bash-commands/main.sh

    3. finally re-open the terminal

    This will allow you to access the tool's functionality from your terminal. Please note that you can also add this line to other shell initialization files such as .zshenv or .bashrc, depending on your preference and setup.

    It's important to note that .zshenv, .zprofile, and other shell initialization files are used by the shell to set up the environment and define various system and user settings. While it's beyond the scope of this readme to explain each file in detail, I encourage you to read more about them and their purpose. By doing so, you can gain a better understanding of how your shell environment is set up and configured.

goto

project navigator that allows you to quickly navigate to one of your repositories inside GOTO_PATH

python-venv

Helper aliasing some of the boilerplate commands when handling python environments such as creating venvs, compiling requirements.in, installing reqreuiemnts etc. See pvenv --help for all functionality

Examples:

  • pvenv -m 3.10 will run:

    python3.10 -m venv .venv:
    source .venv/bin/activate
    python -m pip install pip-tools
    
  • pvenv -if/--install-file will run:

    python -m pip install -r requirements.txt
    
  • pvenv -if something/requirements.txt

      python -m pip install -r something/requirements.txt
    
    

About

My prviate helpers method for mac

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages