shell-path - Get the $PATH from the shell

  •        5

Useful for Electron/NW.js apps as GUI apps on macOS doesn't inherit the $PATH defined in your dotfiles (.bashrc/.bash_profile/.zshrc/etc).Return a promise for the $PATH.

https://github.com/sindresorhus/shell-path

Dependencies:

shell-env : ^0.3.0

Tags
Implementation
License
Platform

   




Related Projects

electron-mocha - Run Mocha tests in Electron

  •    Javascript

and then electron will be added to your path. Or, you can download a version from https://github.com/atom/electron/releases and then set an environment variable ELECTRON_PATH pointing to the binary. Note if you're using Mac OS X, the path would be to the actual executable and not the app directory e.g. /Applications/Electron.app/Contents/MacOS/Electron.You should probably just install electron-prebuilt as it simplifies things.

mosh - Mobile Shell

  •    C++

packages for many operating systems, as well as instructions for building from source. Note that `mosh-client` receives an AES session key as an environment variable. If you are porting Mosh to a new operating system, please make sure that a running process's environment variables are not readable by other users. We have confirmed that this is the case on GNU/Linux, OS X, and FreeBSD.Usage----- The `mosh-client` binary must exist on the user's machine, and the `mosh-server` binary on

victory-cli - A tool for generating charts on the command line.

  •    Javascript

Then try reinstalling this module. For further information, see this thread.You will need cairo and librsvg-2 libraries which is bundled in GTK. Go to http://www.gtk.org/download/win64.php (or http://www.gtk.org/download/win32.php for 32-bit node) and download the all-in-one bundle (these instructions used the following zip http://win32builder.gnome.org/gtk+-bundle_3.6.4-20131201_win64.zip). Unzip the contents in C:\GTK (if you want to change this you must define -GTK_Root=c:\another\path shell variable to npm or node-gyp to reflect your changes), and add "C:\GTK\bin;" to the PATH environment variable in Windows, it's necessary for node-rsvg runtime to load those libs.

devops-intro-project - Project files for Intro to DevOps class

  •    Shell

These instructions assume familiarity with Git and GitHub. If you are not comfortable with those tools, please complete Udacity's How to Use Git and GitHub course before proceeding. After installing the required tools, you will need to ensure that your computer can find the executables to run them. For this, you might need to modify the PATH environment variable. A good overview is at superuser.com. You may need to search the web for instructions on how to set the PATH variable for your specific operating system and version.

exec-path-from-shell - Make Emacs use the $PATH set up by the user's shell

  •    Emacs

A GNU Emacs library to ensure environment variables inside Emacs look the same as in the user's shell. This happens a lot on OS X, where an Emacs instance started from the GUI inherits a default set of environment variables.


wd - :rocket: Jump to custom directories in zsh

  •    Shell

wd (warp directory) lets you jump to custom directories in zsh, without using cd. Why? Because cd seems inefficient when the folder is frequently visited or has a long path. NEWS: If you are not using zsh, check out the c-port, wd-c, which works with all shells using wrapper functions.

git-open - Type `git open` to open the GitHub page or website for a repository in your browser.

  •    Shell

Type git open to open the repo website (GitHub, GitLab, Bitbucket) in your browser. The preferred way of installation is to simply add the git-open script somewhere into your path (e.g. add the directory to your PATH environment or copy git-open into an existing included path like /usr/local/bin).

git-recent - See your latest local git branches, formatted real fancy

  •    Shell

If you're a Windows user, you need to use Git Bash or similar shell in order to effectively use this utility. You can add the git-recent location to your path (e.g. add the directory to your PATH environment or copy git-recent into an existing included path like /usr/local/bin or ~/bin/).

dotfiles - My OS X environment

  •    Shell

This is a collection of dotfiles and scripts I use for customizing OS X to my liking and setting up the software development tools I use on a day-to-day basis. They should be cloned to your home directory so that the path is ~/dotfiles/. The included setup script creates symlinks from your home directory to the files which are located in ~/dotfiles/. The setup script is smart enough to back up your existing dotfiles into a ~/dotfiles_old/ directory if you already have any dotfiles of the same name as the dotfile symlinks being created in your home directory.

Bash Environment Variable Manager

  •    Perl

pathmgr is a script that helps manage environment variables in bash. Persistently edit variables with commands like 'path edit APP_HOME'. Change vars used in your path and then reload with 'path load PATH'. And there is more...

autoenv - Directory-based environments.

  •    Shell

Magic per-project shell environments. Very pretentious. If a directory contains a .env file, it will automatically be executed when you cd into it. When enabled (set AUTOENV_ENABLE_LEAVE to a non-null string), if a directory contains a .env.leave file, it will automatically be executed when you leave it.

direnv - Unclutter your .profile

  •    Go

direnv is an environment switcher for the shell. It knows how to hook into bash, zsh, tcsh, fish shell and elvish to load or unload environment variables depending on the current directory. This allows project-specific environment variables without cluttering the ~/.profile file. Before each prompt, direnv checks for the existence of a ".envrc" file in the current and parent directories. If the file exists (and is authorized), it is loaded into a bash sub-shell and all exported variables are then captured by direnv and then made available to the current shell.

TypeScript-Sublime-Plugin - IO wrapper around TypeScript language services, allowing for easy consumption by editor plugins

  •    Javascript

The plugin uses an IO wrapper around the TypeScript language services to provide an enhanced Sublime Text experience when working with TypeScript code.The plug-in uses Node.js to run the TypeScript server. The plug-in looks for node in the PATH environment variable (which is inherited from Sublime). If the 'node_path' setting is present, this will override the PATH environment variable and the plug-in will use the value of the 'node_path' setting as the node executable to run. See more information in the tips.

cross-env - 🔀 Cross platform setting of environment scripts

  •    Javascript

Most Windows command prompts will choke when you set environment variables with NODE_ENV=production like that. (The exception is Bash on Windows, which uses native Bash.) Similarly, there's a difference in how windows and POSIX commands utilize environment variables. With POSIX, you use: $ENV_VAR and on windows you use %ENV_VAR%.cross-env makes it so you can have a single command without worrying about setting or using the environment variable properly for the platform. Just set it like you would if it's running on a POSIX system, and cross-env will take care of setting it properly.

fb-adb - A better shell for Android devices

  •    C

An out-of-tree build is required. You'll need a copy of the Android NDK: tell configure about it by setting the ANDROID_NDK environment variable to your NDK path or by using the --with-android-ndk argument to the configure script.and then use gmake instead of make.

lambdash - Lambda shell - Run sh commands inside AWS Lambda environment

  •    Shell

Lambda shell - Run sh commands inside AWS Lambda environment

electron-osx-sign - Codesign Electron macOS apps

  •    Javascript

electron-osx-sign minimizes the extra work needed to eventually prepare your apps for shipping, providing the most basic tools and assets. Note that the bare necessities here are sufficient for enabling app sandbox, yet other configurations for network access etc. require additional work. Check out electron-osx-sign guide for suggestions on setting up your environment and workflow for distribution or development.

LS_COLORS - A collection of LS_COLORS definitions; needs your contribution!

  •    Shell

This is a collection of extension:color mappings, suitable to use as your LS COLORS environment variable. Most of them use the extended color map, described in the ECMA-48 document; in other words, you'll need a terminal with capabilities of displaying 256 colors. As of this writing, around 300 different filetypes/extensions is supported. That's indeed a lot of extensions, but there's a lot more! Your help is greatly appreciated.

SublimeFixMacPath - A Sublime Text 2/3 plugin to set the PATH correctly on OS X

  •    Python

On OS X, Sublime Text has its PATH set by launchctl, not by your shell1. Commands like make run by Sublime Text are then unable to find non-system binaries, including those installed by homebrew and MacPorts. Fix Mac Path is a simple plugin for Sublime Text 2 and 3 which sets Sublime Text's PATH to that reported by your shell. Now, if you add homebrew's /usr/local/bin directory to your PATH in .bash_profile (or whatever other way you set your shell's PATH,) Sublime Text will inherit that PATH.

shml - SHell Markup Language | Style Framework for The Terminal

  •    Shell

SHML is a shell framework for faster and easier script development. HTML has CSS, terminals have "ANSI/VT100 Control Sequences". SHML makes is easy to apply some style to your shell scripts without trying to remember that Yellow = \033[33m instead Yellow is $(color yellow).