akhayyat/dotfiles

zsh: add /snap/bin to path if snap is installed

Commit a3f0e2fbb29f · Ahmad Khayyat · 2021-01-15 22:53 +0300

Changeset
a3f0e2fbb29f90966851b9675f657c9a2a9b9ea4

View source at this commit

Comments

No comments yet.

Log in to comment

Diff

diff --git a/zsh/path.zsh b/zsh/path.zsh
--- a/zsh/path.zsh
+++ b/zsh/path.zsh
@@ -22,3 +22,8 @@
 
 # rust
 export PATH=$HOME/.cargo/bin:$PATH
+
+# snap
+if [ -d /snap/bin ]; then
+    export PATH=$PATH:/snap/bin
+fi