IronicBadger.bash_aliases

Ansible Role: Bash Aliases

  • Development branch: Build Status
  • Master branch: Build Status

This is an Ansible role for setting up Bash aliases. It allows you to use variables in aliases, such as git log "$(pwd)".

How to Use the Role

Installation

You can install it with this command:

ansible-galaxy install ferrarimarco.bash-aliases

Example Playbook

Here’s a simple playbook example:

  - hosts: all
    roles:
      - { role: ferrarimarco.bash-aliases, become: yes }
        bashalias_aliases:
            - { alias: "ll", command: "ls -hl" }
            - { alias: "la", command: "ls -hal" }
            - { alias: "git-log", command: 'git log "$(pwd)"' }

Testing the Role

Requirements

You need the following tools:

  • Bundler, version 1.13.0 or higher
  • Ruby, version 2.3.0 or higher
  • Docker, version 1.13.0 or higher

Setup

  1. Install Bundler with: gem install bundler
  2. Install the necessary gems from the project root: bundle install
  3. Run tests using: kitchen test
Informazioni sul progetto

Setup Bash aliases

Installa
ansible-galaxy install IronicBadger.bash_aliases
Licenza
Unknown
Download
13.4k
Proprietario
Father. Podcaster @selfhostedshow podcast. Tailscalar.