summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Clawsie <brad@b7j0c.org>2021-05-22 12:42:11 -0500
committerBrad Clawsie <brad@b7j0c.org>2021-05-22 12:42:11 -0500
commite6ce150e8ef9dd9c85095cb4c6c90032ea95edbd (patch)
treeaae533c85ab80ae3dcad1fe242c8552037315e5f
parent02baefe3d30961dd4965046ddd2c0cfc4aa1c0d7 (diff)
perlbrew
-rw-r--r--dotprofile29
-rw-r--r--dotzshrc10
2 files changed, 37 insertions, 2 deletions
diff --git a/dotprofile b/dotprofile
new file mode 100644
index 0000000..c2671eb
--- /dev/null
+++ b/dotprofile
@@ -0,0 +1,29 @@
+# ~/.profile: executed by the command interpreter for login shells.
+# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
+# exists.
+# see /usr/share/doc/bash/examples/startup-files for examples.
+# the files are located in the bash-doc package.
+
+# the default umask is set in /etc/profile; for setting the umask
+# for ssh logins, install and configure the libpam-umask package.
+#umask 022
+
+# if running bash
+if [ -n "$BASH_VERSION" ]; then
+ # include .bashrc if it exists
+ if [ -f "$HOME/.bashrc" ]; then
+ . "$HOME/.bashrc"
+ fi
+fi
+
+# set PATH so it includes user's private bin if it exists
+if [ -d "$HOME/bin" ] ; then
+ PATH="$HOME/bin:$PATH"
+fi
+
+# set PATH so it includes user's private bin if it exists
+if [ -d "$HOME/.local/bin" ] ; then
+ PATH="$HOME/.local/bin:$PATH"
+fi
+source "$HOME/.cargo/env"
+source "$HOME/perl5/perlbrew/etc/bashrc"
diff --git a/dotzshrc b/dotzshrc
index c89ee49..b3c549c 100644
--- a/dotzshrc
+++ b/dotzshrc
@@ -17,8 +17,8 @@ export PERL_UNICODE="AS"
export PERL_READLINE_NOWARN="yes"
export PERL5LIB="$HOME/perl5/lib/perl5:$PERL5LIB"
export PERLBREW_VERSION="5.34.0"
-export PERLBREW_ROOT="$HOME/perl5/perlbrew/perls/perl-$PERLBREW_VERSION"
-export PERLBREW_PATHS="$PERLBREW_ROOT/bin"
+export PERLBREW_VERSION_ROOT="$HOME/perl5/perlbrew/perls/perl-$PERLBREW_VERSION"
+export PERLBREW_PATHS="$PERLBREW_VERSION_ROOT/bin"
# raku
export RAKU_ROOT="$HOME/.raku"
@@ -58,3 +58,9 @@ zstyle ':completion:*:kill:*' force-list always
zstyle ':completion:*:cd:*' ignore-parents parent pwd
clear;
+
+PATH="/home/brad/perl5/bin${PATH:+:${PATH}}"; export PATH;
+PERL5LIB="/home/brad/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
+PERL_LOCAL_LIB_ROOT="/home/brad/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT;
+PERL_MB_OPT="--install_base \"/home/brad/perl5\""; export PERL_MB_OPT;
+PERL_MM_OPT="INSTALL_BASE=/home/brad/perl5"; export PERL_MM_OPT;