You are not logged in.

#1 2019-10-24 00:47:06

matti666
Member
Registered: 2016-06-17
Posts: 35

alais not working

alias pacmanr = 'bash: alias: pacmans: not found
bash: alias: =: not found
bash: alias: sudo pacman -Syu: not found
'
#
# ~/.bash_profile
#
alias pacmans = "sudo pacman -Syu"
[[ -f ~/.bashrc ]] && . ~/.bashrc

Last edited by matti666 (2019-10-24 00:49:11)

Offline

#2 2019-10-24 00:52:14

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,526
Website

Re: alais not working

Remove the spaces around the equals sign, they are not allowed.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2019-10-24 00:52:45

matti666
Member
Registered: 2016-06-17
Posts: 35

Re: alais not working

tried both bashrc and bash_profile

Offline

#4 2019-10-24 00:55:18

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,526
Website

Re: alais not working

Then perhaps try reading my post.

EDIT: I see in a previous thread you clarified that English is indeed your first language which was in contrast to a suspicion based on your posts.  I had the same curiosity here.  Please consider reading this section from Eric S Raymond on the importance of writing clearly.  I understand that writing clearly may be particularly challenging for you, but you will likely find that small efforts to do better will greatly improve the responses you get on technical forums.

Last edited by Trilby (2019-10-24 01:06:26)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB