oh-my-bash icon indicating copy to clipboard operation
oh-my-bash copied to clipboard

Aliases in directories.sh not overridable

Open XeroxDev opened this issue 2 years ago • 2 comments

Hello!

I've my own ll command / alias and want to use it. I tried to override it with a own file in custom/aliases/custom.aliases.sh because the example file said this would be possible. But sadly.. No effect.. To be 100% sure the new files are loaded, I restarted the whole bash (logout and reconnect).

Expected Behavior: alias ll='exa -lFaBgh --group-directories-first --time-style long-iso --git'

Current Behavior which -> alias ls='ls --color=auto' type -> ll is aliased to 'ls -lh'

Is this a bug or intended?

Edit: After moving the file in the root of custom it works

XeroxDev avatar Apr 19 '22 22:04 XeroxDev

I tried to override it with a own file in custom/aliases/custom.aliases.sh because the example file said this would be possible.

Have you added the entry "custom" in the array aliases in .bashrc? An aliases file in $OSH_CUSTOM/aliases is supposed to be sourced when it is added to the array aliases.

akinomyoga avatar Apr 19 '22 23:04 akinomyoga

No. Didn't knew that. Thanks! But I guess I'll let the file in the custom root.

XeroxDev avatar Apr 19 '22 23:04 XeroxDev