summarylogtreecommitdiffstats
path: root/perlbin.fish
diff options
context:
space:
mode:
authorTucker Boniface2018-08-13 11:44:11 -0700
committerTucker Boniface2018-08-13 11:45:43 -0700
commit3dfc92d6f8063027738b7fb6f4130aff57d18692 (patch)
treef51dfaa9ecb16d1da59d49c60d32ef271a1e8c63 /perlbin.fish
downloadaur-perl-git.tar.gz
Initial commit
Diffstat (limited to 'perlbin.fish')
-rw-r--r--perlbin.fish10
1 files changed, 10 insertions, 0 deletions
diff --git a/perlbin.fish b/perlbin.fish
new file mode 100644
index 00000000000..b9cff07a42a
--- /dev/null
+++ b/perlbin.fish
@@ -0,0 +1,10 @@
+# Set path to perl scriptdirs if they exist
+# https://wiki.archlinux.org/index.php/Perl_Policy#Binaries_and_scripts
+
+if status --is-login
+ for perldir in /usr/bin/site_perl /usr/bin/vendor_perl /usr/bin/core_perl
+ if test -d $perldir; and not contains $perldir $PATH
+ set PATH $PATH $perldir
+ end
+ end
+end