2023-04-15 22:45:49 +00:00
|
|
|
{{- if lookPath "pipx" }}
|
2021-08-25 01:36:50 +00:00
|
|
|
# Enable pipx completions
|
2023-04-15 22:45:49 +00:00
|
|
|
eval "$(register-python-argcomplete pipx)"
|
|
|
|
{{- end }}
|
2021-08-25 01:36:50 +00:00
|
|
|
|
2023-04-15 22:45:49 +00:00
|
|
|
{{- if lookPath "nvim" }}
|
2021-08-25 01:36:50 +00:00
|
|
|
# Preferred editor for local and remote sessions
|
2023-04-15 22:45:49 +00:00
|
|
|
export EDITOR=nvim
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{- if lookPath "kate" }}
|
|
|
|
export VISUAL=kate
|
|
|
|
{{- else if lookPath "codium" }}
|
|
|
|
export VISUAL=codium
|
|
|
|
{{- else if lookPath "code" }}
|
|
|
|
export VISUAL=code
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{- if lookPath "most" }}
|
2021-08-25 01:36:50 +00:00
|
|
|
# Set a cool new pager with color support
|
2023-04-15 22:45:49 +00:00
|
|
|
export PAGER=most
|
|
|
|
{{- end }}
|
2021-08-25 01:36:50 +00:00
|
|
|
|
2023-04-15 22:45:49 +00:00
|
|
|
{{- if or (lookPath "bat") (lookPath "catbat") }}
|
2021-08-25 01:36:50 +00:00
|
|
|
# Replace cat with bat
|
2023-04-15 22:45:49 +00:00
|
|
|
export BAT_PAGER="less -SRF"
|
|
|
|
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
|
|
|
|
export MANROFFOPT="-c"
|
|
|
|
{{- end }}
|
2021-08-25 01:36:50 +00:00
|
|
|
|
|
|
|
# Add notification support for long-running processes
|
2023-04-15 22:45:49 +00:00
|
|
|
{{- if lookPath "ntfy" }}
|
|
|
|
eval "$(ntfy shell-integration --longer-than 30)"
|
|
|
|
export AUTO_NTFY_DONE_IGNORE="vim nano emacs kate zshconfig screen tmux ssh top htop less more most nethogs 'singularity shell' julia man glances"
|
|
|
|
{{- end }}
|
2021-08-25 01:36:50 +00:00
|
|
|
|
|
|
|
# Set the Nextflow enviroment caches
|
|
|
|
export NXF_HOME="$HOME/.nextflow"
|
2021-10-12 21:54:31 +00:00
|
|
|
{{ if (eq .cluster "scinet") }}
|
|
|
|
NXF_CACHE=/90daydata/shared/$USER/.nextflow
|
|
|
|
{{ else }}
|
|
|
|
NXF_CACHE=$NXF_HOME
|
|
|
|
{{ end }}
|
|
|
|
export NXF_CONDA_CACHEDIR="$NXF_CACHE/conda"
|
|
|
|
export NXF_SINGULARITY_CACHEDIR="$NXF_CACHE/singularity"
|
|
|
|
export NXF_CHARLIECLOUD_CACHEDIR="$NXF_CACHE/charlie"
|
|
|
|
|
|
|
|
{{ if (eq .cluster "scinet") }}
|
|
|
|
# Set the Singularity image cache
|
2021-11-17 18:45:06 +00:00
|
|
|
export SINGULARITY_CACHEDIR=/90daydata/shared/$USER/.singularity
|
2021-10-12 21:54:31 +00:00
|
|
|
{{ end }}
|
2021-08-25 20:31:11 +00:00
|
|
|
|
|
|
|
# Give Julia full CPU access
|
|
|
|
export JULIA_NUM_THREADS=$(nproc)
|
2021-10-12 22:02:27 +00:00
|
|
|
|
2022-11-19 21:57:55 +00:00
|
|
|
# Make Julia use preinstalled Git
|
|
|
|
JULIA_PKG_USE_CLI_GIT=true
|
|
|
|
|
2021-10-12 22:02:27 +00:00
|
|
|
# Make NCBI happy
|
|
|
|
export NCBI_API_KEY='{{ (bitwarden "item" "7d42eba0-c256-4d3b-8d0e-adbf016a08f8").login.password }}'
|