Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Robert Spencer
awit-zsh-superawesome
Commits
d775b718
Commit
d775b718
authored
Dec 04, 2019
by
Robert Spencer
Browse files
We no longer support ~/bin
parent
6c0223b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
zshrc.d/10-home-bin.zsh
View file @
d775b718
# Override first bin directory
# Depending on your distro, your ~/.profile may already be providing
# this information
if
[
-d
"
$HOME
/bin"
]
if
[
-d
"
$HOME
/.local/bin"
]
then
if
!
[
"
$PATH
"
=
~
"
$HOME
/bin"
]
if
!
[
[
"
$PATH
"
=
~
"
$HOME
/
.local/
bin"
]
]
then
export
PATH
=
"
$HOME
/bin:
$PATH
"
export
PATH
=
"
$HOME
/
.local/
bin:
$PATH
"
fi
fi
else
# We should never need this, but just in case
mkdir
-p
"
$HOME
/.local/bin"
if
[
-d
"
$HOME
/.local/bin"
]
then
if
!
[
"
$PATH
"
=
~
"
$HOME
/.local/bin"
]]
if
!
[[
"
$PATH
"
=
~
"
$HOME
/.local/bin"
]]
then
export
PATH
=
"
$HOME
/.local/bin:
$PATH
"
fi
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment