mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-05 02:49:08 +00:00
feat: x-path-* as scripts, run other changes
This commit is contained in:
7
local/bin/x-path-remove
Executable file
7
local/bin/x-path-remove
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# Remove a directory from the PATH
|
||||
# Usage: x-path-remove <dir>
|
||||
|
||||
export PATH=$(echo -n "$PATH" | awk -v RS=: -v ORS=: "\$0 != \"$1\"" | sed 's/:$//')
|
||||
|
||||
Reference in New Issue
Block a user