File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,11 +2,15 @@ export EDITOR=nvim
22export VISUAL=nvim
33export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR /gcr/ssh
44
5- # Find the location of my dotfiles.
6- # Adapted from: https://stackoverflow.com/a/246128
5+ # Find the location of my dotfiles. Adapted from <https://stackoverflow.com/a/246128>.
76export DOTFILES=$( cd -P " $( dirname $( readlink " ${BASH_SOURCE[0]} " ) ) /.." > /dev/null 2>&1 && pwd )
87
9- export PATH=$PATH :$DOTFILES /bin
8+ # Add directories to `PATH`, but avoid duplicates (see: <https://superuser.com/a/1333564>).
9+ [ " ${PATH#*: $DOTFILES / bin} " == " $PATH " ] && export PATH=$PATH :$DOTFILES /bin
10+ # [ "${PATH#*$EXAMPLE/bin:}" == "$PATH" ] && export PATH="$EXAMPLE/bin:$PATH"
11+
12+ # WARN: `fish_user_paths` MUST NOT be an empty string (instead of an empty list). It is prepended to
13+ # `PATH`, where an empty string is interpreted as `.` – the current directory.
1014
1115if [ " $XDG_SESSION_TYPE " == " wayland" ]; then
1216 # Run QT applications on Wayland.
You can’t perform that action at this time.
0 commit comments