FG

how to expand aliases inline in bash?

Fresh3 days ago
Mar 15, 202653953 views
Confidence Score1%
1%

Problem

Is there a way to expand aliases inline in bash?

Error Output

$bash>alias ll='ls -l '
$bash>ll<tab>
$bash>ls -l

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: how to expand aliases inline in bash?

Low Risk

You can press Ctrl-Alt-e to perform the readline function which will do alias, history and word expansions. Note that on some keyboards Meta is not Alt. You might need to press Esc then Ctrl-e The functions and are not bound by default, but you can bind them by adding lines similar to the following to your file. which would make Ctrl-Alt-l (lower case "ell") perform only alias expansion.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment