Skip to main content
Post Closed as "Duplicate" by Gilles 'SO- stop being evil' command-line
edited tags; edited tags
Link
Gilles 'SO- stop being evil'
  • 866.1k
  • 205
  • 1.8k
  • 2.3k
just use the correct formatting
Source Link
Braiam
  • 36.9k
  • 29
  • 114
  • 176

gtkmm Alias so to enter Aliasing a filecommand with special parameters

I would like to have an alias for the following code:-

g++ *.cc -o * ´pkg-config gtkmm-3.0 --cflags --libs´

g++ *.cc -o * `pkg-config gtkmm-3.0 --cflags --libs`;

but I want that when I enter the alias it should be followed by the file name *.cc*.cc and then the name of the compiled program **.

for example:- gtkmm simple.cc simple should run

g++ simple.cc -o simple ´pkg-config gtkmm-3.0 --cflags --libs´

gtkmm simple.cc simple

note The ` are a part of code. they enclose the gtkmm libs command. should run

g++ simple.cc -o simple `pkg-config gtkmm-3.0 --cflags --libs`

gtkmm Alias so to enter a file

I would like to have an alias for the following code:-

g++ *.cc -o * ´pkg-config gtkmm-3.0 --cflags --libs´

but I want that when I enter the alias it should be followed by the file name *.cc and then the name of the compiled program *.

for example:- gtkmm simple.cc simple should run

g++ simple.cc -o simple ´pkg-config gtkmm-3.0 --cflags --libs´

note The ` are a part of code. they enclose the gtkmm libs command.

Aliasing a command with special parameters

I would like to have an alias for the following code:-

g++ *.cc -o * `pkg-config gtkmm-3.0 --cflags --libs`;

but I want that when I enter the alias it should be followed by the file name *.cc and then the name of the compiled program *.

for example:

gtkmm simple.cc simple

should run

g++ simple.cc -o simple `pkg-config gtkmm-3.0 --cflags --libs`
Source Link
Aditya ultra
  • 180
  • 1
  • 3
  • 10

gtkmm Alias so to enter a file

I would like to have an alias for the following code:-

g++ *.cc -o * ´pkg-config gtkmm-3.0 --cflags --libs´

but I want that when I enter the alias it should be followed by the file name *.cc and then the name of the compiled program *.

for example:- gtkmm simple.cc simple should run

g++ simple.cc -o simple ´pkg-config gtkmm-3.0 --cflags --libs´

note The ` are a part of code. they enclose the gtkmm libs command.