Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 460482 Details for
Bug 545830
app-shells/fish - provide a way to load system-wide variables (profile.env) on start
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
parser using fish only 2
reuse-csh-env.fish (text/plain), 925 bytes, created by
Georgy Yakovlev
on 2017-01-17 17:18:33 UTC
(
hide
)
Description:
parser using fish only 2
Filename:
MIME Type:
Creator:
Georgy Yakovlev
Created:
2017-01-17 17:18:33 UTC
Size:
925 bytes
patch
obsolete
># only apply env for login shells, as we'd like fish to ># inherit existing shell environment without overriding it ># using csh env, as it's cleaner and less too parse/strip > >if status --is-login > # since fish supports export via upstream provided function > # we can source directly, only ommiting $PATH and comments. > string match -r -v '^(#|setenv (PATH|ROOTPATH) )' < /etc/csh.env | source > > # strip unneded stuff from setenv lines > # apply paths and cleanup > if [ "$EUID" = "0" ] ; or [ "$USER" = "root" ] > string match -r '^setenv ROOTPATH .+' < /etc/csh.env | string replace -ra '\'|\:' ' ' | source > set -gx PATH /usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin $ROOTPATH > set -e ROOTPATH > else > string match -r '^setenv PATH .+' < /etc/csh.env | string replace -ra '\'|\:' ' ' | source > set -gx PATH /usr/local/bin /usr/bin /bin $PATH > end > > # re-prepend $fish_user_paths > __fish_reconstruct_path >end
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 545830
:
459678
|
459680
|
460236
|
460238
|
460240
|
460242
|
460358
|
460452
|
460480
| 460482 |
460670
|
460672