mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-06 05:49:23 +00:00
feat: x-path-* as scripts, run other changes
This commit is contained in:
7
local/bin/x-path-prepend
Executable file
7
local/bin/x-path-prepend
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# Add a directory to the front of the PATH if it exists and is not already there
|
||||
# Usage: x-path-prepend <dir>
|
||||
|
||||
export PATH="$1${PATH:+":$PATH"}"
|
||||
|
||||
Reference in New Issue
Block a user