Git Product home page Git Product logo

dotfiles's People

Contributors

aliciaaevans avatar daler avatar daler-nih avatar menoldmt avatar njohnso6 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dotfiles's Issues

Inconsistent ls colors on macos in certain conditions

If using macos and coreutils is installed into conda base environment (e.g. ./setup.sh --conda-env), ls uses different color schemes depending on whether conda is initialized, or whether conda base environment or other environment is activated.

Attempted fix with PR in #35

debug non-tmux conda_deactivate_all

Under some conditions (seems to be if conda has not been activated) running setup.sh results in the while-loop of the conda_deactivate_all function to not terminate.

Configure .path Dotfile Based on NIH Cluster Usage

The setup.sh script identifies if a user is on the NIH's Biowulf or Helix clusters to determine the conda installation directory. Suggesting similar environment checks for the .path dotfile to ensure appropriate path settings.

This line needs to be configured based on cluster usage detection:

export PATH=$PATH:$HOME/mambaforge/condabin

Potential location for the configuration to occur:

MAMBAFORGE_DIR=/data/$USER/mambaforge

Furthermore, in the docs after these lines,

- adds the line ``export PATH="$PATH:~/mambaforge/condabin"`` to the :file:`~/.path`

https://github.com/daler/dotfiles/blob/095fc12649d4434cbcb71d3219cfd05eb42a58f6/docs/starthere.rst?plain=1#L260C49-L260C49
add:

  • or if you're on NIH's Biowulf cluster:
    adds the line export PATH="$PATH:~/data/$USER/mambaforge/condabin" to the :file:~/.path

In setup.sh, append .path if user is on NIH HPC or if user if on NIH HPC and in BSPC

Add feature here:

if [[ $HOSTNAME == "helix.nih.gov" || $HOSTNAME == "biowulf.nih.gov" ]]; then

that asks if the user is in BSPC and if so appends the NICDH-core1 tools to users path via export PATH in .path:

if [[ $HOSTNAME == "helix.nih.gov" || $HOSTNAME == "biowulf.nih.gov" ]]; then
MAMBAFORGE_DIR=/data/$USER/mambaforge

 while true; do
 # Ask the user if they are in BSPC
 read -p "Are you in BSPC? (y/n): " response

 # Check the user's response
 if [[ "$response" == "y" || "$response" == "Y" ]]; then
     echo "Adding BSPC tools to .path."
     echo "export PATH=$PATH:/data/NICHD-core1/bin" >> $HOME/.path
     break
 elif [[ "$response" == "n" || "$response" == "N" ]]; then
     break
 else
     echo "Invalid response. Please answer with y or n."
 fi
done

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.