Questions tagged [aliases]
169 questions
4
votes
3 answers
Gitlab and placing hidden key scripts into include files
I have what amounts to several different scripts that I want to run in a variety of stages across multiple projects. Currently they are of the form:
.hidden_key: &hidden_key |
do_something
do_something_else
real_job:
script:
-…

pll
- 71
- 1
- 3
4
votes
3 answers
making a commandline alias to a python file in a pipenv project
I've been making a python project using pipenv, and I want to be able to run it in a terminal from any location on my (linux) system.
Specifically, say I have the following directory structure:
/home
/project
Pipfile
main.py
…

reedef
- 43
- 4
4
votes
1 answer
Add alias to Docker during build
Since I am trying to compile a program during the build phase of a container, I'm including my aliases during the build of the container inside the .bashrc:
RUN cat /path/to/aliases.sh >> ~/.bashrc
When I start the container, all aliases are…

Karlo Kraljic
- 173
- 2
- 11
4
votes
2 answers
how to include php aliases across files
I can write this in a file:
use Carbon\Carbon as Carbon;
I have tried to create a file 'aliases.php':
use Carbon\Carbon as Carbon;
which I then reference like so:
require __DIR__.'/../bootstrap/aliases.php';
printf("Right now is %s",…

S..
- 5,511
- 2
- 36
- 43
4
votes
1 answer
Getting hostname aliases from IP
I want to get the list of aliases for a hostname in C++. This input is a IP. Currently we call gethostbyaddr(), which returns a hostent struct. This struct has a field for list of aliases.
struct hostent {
char FAR * h_name; …

chen
- 41
- 3
4
votes
2 answers
Create an alias for "pipe grep"
I would like to create an alias for | grep
eg, for example be able to write:
ps -axf G chrome instead of ps -axf | grep chrome
I've written the following in my aliases file of oh-my-zsh:
alias -g G= '| grep --color'
However, this doesn's seem to…

edi9999
- 19,701
- 13
- 88
- 127
3
votes
1 answer
How do you port bash aliases to ipython > 0.10?
How do you port your bash aliases to IPython version >= 0.11?
This question has already been answered for IPython < 0.11, and link for that is
here:
http://ipython.scipy.org/Wiki/tips

Alex Gaudio
- 1,894
- 1
- 16
- 13
3
votes
1 answer
Piping with postfix aliases and MySQL
I am trying to get incoming email to a specific email address redirected to a php script. I am using Postfix with address and domain information stored in MySql. As I believe the piping cannot be done from the mysql table, the address is paired…

matfr
- 109
- 1
- 10
3
votes
2 answers
Automatically add aliases to .bashrc
I know there is probably no simple way to do this, but I thought I might put this out there. I have a directory that contains a subdirectory for each customer I deal with. I'd like to be able to type that customers directory name in, anywhere on the…

wrangler
- 1,995
- 2
- 19
- 22
3
votes
1 answer
Why .eslintrc may don't see aliases from .babelrc.js?
I have some aliases inside .babelrc.js
And .eslintrc with eslint-import-resolver-babel-module plugin to get aliases from babel config.
But eslint anyway can't resolve aliases.
.babelrc.js, .eslintrc, package.json in the gist:…

SilentImp
- 1,865
- 1
- 18
- 28
3
votes
1 answer
Bash Aliases and Dotfiles
I recently came across this # -*- sh -*- at the top of a file with aliases in them. It was part of someone's dotfiles inside their bash directory and, until now, I've never seen it before. So, what is this and how is it different than using a…

kyle
- 207
- 3
- 17
3
votes
0 answers
No Git aliases working after moving to new computer
I know there are numerous sources of information on setting up git aliases, but none of them seem to be working for me.
I have recently moved over to a new computer, and moved my whole git repository. Because our team is on TFS, I'm using a…

Dave Hanna
- 2,491
- 3
- 32
- 52
3
votes
3 answers
Joomla: regenerate aliases for all articles at once?
I am working on a Joomla 3.2.1 site and the client, without thinking, entered in the same alias for all articles, instead of letting the system use the article title. So now if I want to turn on SEF URL's we are going to have 404 issues in the…

Hans Desjarlais
- 115
- 12
3
votes
2 answers
How do I make aliases work across all the shells?
I have been trying to make aliases work in bash shell. Now, let's say I do
alias yum='yum -v' in my shell. It works when I run the run the command from CLI. But when I run a script it doesn't have any effect. How can I make the aliases work across…

Pensu
- 3,263
- 10
- 46
- 71
3
votes
2 answers
/etc/aliases using pipe to run script return error (mailer=prog, dsn=5.3.0, stat=unknown mailer error 2)
I would like to get any advice for my issue to run script on /etc/aliases.
At first, here are my envirements/script.
OS : centos 6
script : python 2.6.6
mail : sendmail-8.14 / dovecot-2x
python script (it's very simple for testing)
import sys
f =…

minS
- 31
- 1
- 3