Add snap/bin to /etc/environment (#755)
* Add snap/bin to /etc/environment Co-authored-by: Sergey Dolin <[email protected]>
This commit is contained in:
co-authored by
Sergey Dolin
parent
44f2342c9e
commit
8410ae2c65
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
################################################################################
|
||||
## File: snap-environment.sh
|
||||
## Desc: Update /etc/environment to include /snap/bin in PATH
|
||||
## because /etc/profile.d is ignored by `--norc` shell launch option
|
||||
################################################################################
|
||||
|
||||
# Source the helpers
|
||||
source $HELPER_SCRIPTS/etc-environment.sh
|
||||
|
||||
# Update /etc/environemnt
|
||||
prependEtcEnvironmentPath "/snap/bin"
|
||||
Reference in New Issue
Block a user