aboutsummaryrefslogtreecommitdiffstats
path: root/bash
diff options
context:
space:
mode:
authorjason2023-05-30 22:50:45 -0600
committerjason2023-05-30 22:50:45 -0600
commit855354ac56c29ca5d7fa73d4bcf0d592ef494ea8 (patch)
tree9e36221f8202ff1a75858b21353f400f24089112 /bash
parent6cc27a9d6eb066c57d10b7a5920e2d7f751c9875 (diff)
downloaddotfiles-855354ac56c29ca5d7fa73d4bcf0d592ef494ea8.tar.gz
dotfiles-855354ac56c29ca5d7fa73d4bcf0d592ef494ea8.zip
add erlang stuff
Diffstat (limited to 'bash')
-rw-r--r--bash/.bashrc13
1 files changed, 11 insertions, 2 deletions
diff --git a/bash/.bashrc b/bash/.bashrc
index 5f5ab03..4d9ecff 100644
--- a/bash/.bashrc
+++ b/bash/.bashrc
@@ -50,13 +50,20 @@ if [ -x $KERL ]; then
50 fi 50 fi
51 if [[ $OS_NAME == "Darwin" ]]; then 51 if [[ $OS_NAME == "Darwin" ]]; then
52 export KERL_BUILD_BACKEND="git" 52 export KERL_BUILD_BACKEND="git"
53 export KERL_CONFIGURE_OPTIONS="--without-javac --with-dynamic-trace=dtrace" 53 export KERL_CONFIGURE_OPTIONS="--disable-hipe --without-javac --with-dynamic-trace=dtrace"
54 fi 54 fi
55 if [[ $OS_NAME == "Linux" ]]; then 55 if [[ $OS_NAME == "Linux" ]]; then
56 export KERL_BUILD_BACKEND="git" 56 export KERL_BUILD_BACKEND="git"
57 export KERL_CONFIGURE_OPTIONS="--without-javac --with-dynamic-trace=systemtap" 57 export KERL_CONFIGURE_OPTIONS="--without-javac --with-dynamic-trace=systemtap"
58 fi 58 fi
59fi 59fi
60source ~/.virtualenvs/erlang/activate
61ERL=`which erl`
62if [ -x $ERL ]; then
63 # +pc unicode Output strings as unicode by default
64 # -kernal shell_history enabled Enable erl repl history
65 export ERL_AFLAGS="+pc unicode -kernel shell_history enabled"
66fi
60 67
61# Enable rust and cargo 68# Enable rust and cargo
62# if [ -x $HOME/.cargo/bin/cargo ]; then 69# if [ -x $HOME/.cargo/bin/cargo ]; then
@@ -119,6 +126,8 @@ fi
119# Enable Homebrew 126# Enable Homebrew
120if [ -x /opt/homebrew/bin/brew ]; then 127if [ -x /opt/homebrew/bin/brew ]; then
121 export HOMEBREW_NO_ANALYTICS=1 128 export HOMEBREW_NO_ANALYTICS=1
129 #export LDFLAGS="-L/opt/homebrew/lib"
130 #export CPPFLAGS="-I/opt/homebrew/include"
122 eval "$(/opt/homebrew/bin/brew shellenv)" 131 eval "$(/opt/homebrew/bin/brew shellenv)"
123fi 132fi
124 133
@@ -238,7 +247,7 @@ function delete-branches() {
238 grep --invert-match '\*' | 247 grep --invert-match '\*' |
239 cut -c 3- | 248 cut -c 3- |
240 fzf --multi --preview="git log {} --" | 249 fzf --multi --preview="git log {} --" |
241 xargs --no-run-if-empty git branch --delete --force 250 xargs git branch --delete --force
242} 251}
243 252
244XCODE_SELECT=`which xcode-select` 253XCODE_SELECT=`which xcode-select`