.bashrc loading aliases from different file
Fresh3 days ago
Mar 15, 202614195 viewsConfidence Score0%
0%
Problem
I have a .bashrc file, which I want to setup so it reads aliases from an .aliases file and sets them up. Currently I have: But upon login I get: -bash: alias: -fu: not found -bash: alias: $USER": not found -bash: alias: -lart": not found The .aliases file is like this: psu="ps -fu $USER" ll="ls -la…
Error Output
# User specific aliases and functions
while read alias_line
do
echo `alias ${alias_line}`
done < .aliasesUnverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: .bashrc loading aliases from different file
Low Risk
When you use , the variable is broken up at spaces, ignoring quoting rules. There are two ways you could fix it: Remove all quoting from the alias file: and put the variable itself in quotes: This works because in bash, and are exactly equivalent. A…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix