akhayyat/dotfiles
zsh: add /snap/bin to path if snap is installed
Commit a3f0e2fbb29f · Ahmad Khayyat · 2021-01-15 22:53 +0300
Comments
No comments yet.
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