diff options
| author | jason | 2023-05-30 22:50:45 -0600 |
|---|---|---|
| committer | jason | 2023-05-30 22:50:45 -0600 |
| commit | 855354ac56c29ca5d7fa73d4bcf0d592ef494ea8 (patch) | |
| tree | 9e36221f8202ff1a75858b21353f400f24089112 /bash | |
| parent | 6cc27a9d6eb066c57d10b7a5920e2d7f751c9875 (diff) | |
| download | dotfiles-855354ac56c29ca5d7fa73d4bcf0d592ef494ea8.tar.gz dotfiles-855354ac56c29ca5d7fa73d4bcf0d592ef494ea8.zip | |
add erlang stuff
Diffstat (limited to 'bash')
| -rw-r--r-- | bash/.bashrc | 13 |
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 |
| 59 | fi | 59 | fi |
| 60 | source ~/.virtualenvs/erlang/activate | ||
| 61 | ERL=`which erl` | ||
| 62 | if [ -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" | ||
| 66 | fi | ||
| 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 |
| 120 | if [ -x /opt/homebrew/bin/brew ]; then | 127 | if [ -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)" |
| 123 | fi | 132 | fi |
| 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 | ||
| 244 | XCODE_SELECT=`which xcode-select` | 253 | XCODE_SELECT=`which xcode-select` |