mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-08 17:50:53 +00:00
misc: .screenrc, config, functions & new scripts!
This commit is contained in:
@@ -66,6 +66,23 @@ function silent
|
||||
"$@" >&/dev/null
|
||||
}
|
||||
|
||||
function path_remove
|
||||
{
|
||||
PATH=$(echo -n "$PATH" | awk -v RS=: -v ORS=: "\$0 != \"$1\"" | sed 's/:$//')
|
||||
}
|
||||
|
||||
function path_append
|
||||
{
|
||||
path_remove "$1"
|
||||
PATH="${PATH:+"$PATH:"}$1"
|
||||
}
|
||||
|
||||
function path_prepend
|
||||
{
|
||||
path_remove "$1"
|
||||
PATH="$1${PATH:+":$PATH"}"
|
||||
}
|
||||
|
||||
# Defines default antigen bundles
|
||||
function x-default-antigen-bundles
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user