shell-config
This repository contains the Bash shell configuration in (.bash-reit
).
Download and install
Bash
wget https://gitlab.ewi.tudelft.nl/reit/shell-config/-/raw/main/.bashrc-reit?ref_type=heads -O ~/.bashrc-reit
echo 'source $HOME/.bashrc-reit' >> ~/.bashrc
source $HOME/.bashrc
# Test the installation
reit
>>> Hi, from the Research Engineering and Infrastructure Team!!!
Note
This assumes that your ~/.bashrc
is sourced at login. If that is not the case you have to source it manually or add it to the your ~/.pofile
.
# ~/.profile
source ~/.bashrc
Zsh
Not available.
Configuration description
This configuration enhances the shell environment with various aliases, commands, and settings for a more efficient and user-friendly experience. Below is a summary of the features included:
Aliases
-
reit
: Displays a friendly greeting from the Research Engineering and Infrastructure Team. -
reit-update
: Updates the REIT shell configuration with the latest version. -
ll
: Lists all files in the current directory with detailed information, including hidden files. -
la
: Lists all files in the current directory, including hidden files. -
ls
: Lists files in the current directory with color-coded output. -
l
: Lists files in the current directory with detailed information, sorted by modification time. -
md
: Shortcut for themkdir
command to create a new directory. -
..
: Navigates one directory up. -
...
: Navigates two directories up. -
....
: Navigates three directories up.
SLURM aliases
-
st
: Simplifies job tracking by formatting thesacct
command. -
sq
: Shortcut for monitoring jobs of the current user usingsqueue -u $USER
. -
slurm-show-my-accounts
: Lists all accounts associated with the current user usingsacctmgr
. -
slurm-show-all-accounts
: Displays all SLURM accounts configured in the system. -
slurm-show-nodes
: Usessinfo -lNe
to display detailed information about all nodes in the SLURM cluster. -
slurm-show-priorities
: Shows job priorities for the current user usingsprio
. -
slurm-show-partitions
: Shows all partitions and the nodes belonging to them.
Conda aliases
-
ca
: Activates a conda environment.
Installation Aliases
-
install-miniconda
: Downloads and installs Miniconda, initializes it, and adds it to the system path. -
install-miniforge
: Downloads and installs Miniforge, initializes it, adds it to the system path, and installsmamba
as the package manager.
Docker aliases
-
docker-stop-all
: Stops all Docker containers. -
docker-rm-all
: Removes all Docker containers. -
docker-ls
: Lists all Docker containers. -
docker-prune
: Removes all unused Docker images and containers.
History Configuration
- Appends to the history file to prevent overwriting.
- Sets up key bindings for convenient history navigation.
- Sets maximum history size in memory and in the history file.
- Ignores specific patterns and duplicates in the history.
Functions
-
extract
: A function to extract various types of archives. -
lsd
: A function to display full paths of files in the current directory.
Shellstyle
- Sets a custom prompt with readable colors and includes username, hostname, and current directory.
- Sets readable colors for
ls
command output for improved visibility.
Feel free to customize and adjust these configurations to suit your needs. Enjoy your enhanced shell experience!