You are not logged in.

#1 2010-11-23 16:12:09

hellnest
Member
From: $ dmesg | grep ATA
Registered: 2010-11-11
Posts: 194
Website

[SOLVED] Make a shortcut for CLi / Bash Command?

How to make a shortcut for Bash / CLi Command? for example if i want to use "pacman", i can make it shorter to "p" is that possible?

Last edited by hellnest (2010-11-23 16:32:00)


roll Snapping my own life roll
hmmgithubhmm
coolMyBlogcool

Offline

#2 2010-11-23 16:13:32

Fruity
Member
Registered: 2009-12-16
Posts: 198

Re: [SOLVED] Make a shortcut for CLi / Bash Command?

You need to put an alias in your bashrc file.

alias p='pacman'

Offline

#3 2010-11-23 16:13:35

dyscoria
Member
Registered: 2008-01-10
Posts: 1,007

Re: [SOLVED] Make a shortcut for CLi / Bash Command?

It's very possible smile

Have a look here:
https://wiki.archlinux.org/index.php/Pa … ps#Aliases


flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)

Offline

#4 2010-11-23 16:31:38

hellnest
Member
From: $ dmesg | grep ATA
Registered: 2010-11-11
Posts: 194
Website

Re: [SOLVED] Make a shortcut for CLi / Bash Command?

Well thanks... sometimes it's kindda crazy reading all stuff in wiki... SOLVED ^^...


roll Snapping my own life roll
hmmgithubhmm
coolMyBlogcool

Offline

Board footer

Powered by FluxBB