Skip to content
Snippets Groups Projects
Select Git revision
  • c0bf49df9e1788a31a025bbd35cf234672f55682
  • main default protected
2 results

shell-config

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Sören Wacker authored
    c0bf49df
    History
    Name Last commit Last update
    .bashrc-reit
    README.md

    shell-config

    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!!!

    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 the mkdir command to create a new directory.
    • ..: Navigates one directory up.
    • ...: Navigates two directories up.
    • ....: Navigates three directories up.

    SLURM aliases

    • interactive: Starts an interactive bash job.
    • st: Simplifies job tracking by formatting the sacct command output with JobID, JobName, State, Elapsed, Timelimit, AllocNodes, Priority, Start, and NodeList information.
    • sq: Shortcut for monitoring jobs of the current user squeue -u $USER.

    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 installs mamba 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!