Tagged Questions
2
votes
2answers
89 views
Do aliases slow down a shell's start?
Sometimes my shell (zsh) takes longer to start than usual (I open the terminal, and it hangs a bit until I can input commands).
I have a few aliases on my .zshrc (well, actually they're in a ...
2
votes
3answers
119 views
In Power SHell set alias cp to cp -v
I have cp for power shell. But I want to use cp in verbose mode without writing -v. So cp should be aliased to "cp -v" command. How to alias cp to "cp -v" in power shell?
2
votes
2answers
98 views
Working shell command doesn't alias
I can run,
svn status |grep -v .jasper$ |cut -d ' ' -f8 |sed '/.*\..*/!d' |xargs ls -altr --color=auto
just fine. But when I go to add this as an alias (alias svtr="...") I get an error saying...
...
1
vote
1answer
102 views
Accessing your bash profile and history anywhere - via the internet
I'm curious if anyone has tried to tackle the task of having non-sensitive parts of their bash (or other shell) profile made available anywhere they go.
I worked for a company for a time that did ...
2
votes
1answer
372 views
Bash alias history substitution similar to \!* in csh
My question is very similar to that of this old post.
I would like to do something similar: place in an alias the last argument(s) typed on the current command line. This would be equivalent to the ...
2
votes
5answers
233 views
Multiple-command alias enters bash shell but fails to navigate to path
I have this alias defined to run bash then navigate to a certain folder but when I run it, it only runs bash and stays in the current path/directory/folder.
I've defined them in two different ways in ...
2
votes
2answers
807 views
Aliases in subshell / child process
I set up aliases in /etc/profile.d/alias.sh for each login shell. But if I run script.sh, I can't use that alias. How can I set alias even for subshells or child processes ?
/etc/profile.d/alias.sh
...
1
vote
1answer
484 views
csh cd alias: how to eliminate error when no parameter is supplied
I am familiar with bash, but my works require csh. in my .cshrc, I created this alias:
alias cd 'cd \!:1; ls -l'
It works very well except for one case: when I cd without any parameter:
cd
In ...
2
votes
2answers
129 views
Is this alias any useful?
I am going through and old .cshrc file and it contains the following alias:
alias pwd 'echo $cwd'
How is that useful?
I used to think that this is how pwd might have been implemented. But looks ...
8
votes
7answers
5k views
Command aliases in DOS?
How can I make command aliases in DOS like I would with bash?
I found out about doskey in a forum thread, so I can do something like:
doskey ls=dir /b
...and now the command ls acts a little more ...
1
vote
4answers
3k views
Under Ubuntu, how can I place a shell alias command that will be global to everyone?
Under Ubuntu 9.10, where can I place an alias command that will be valid to all users, root or otherwise, and that will work with a shell under GNOME as well as an ssh session and plain console login ...
11
votes
1answer
2k views
Vim Ignores Aliases
If I map a command in vim using something like
map <f4> :! pdflatex %<cr>
Vim will ignore my alias for pdflatex (something like alias pdflatex='pdflatex --temp-dir=something'). Is it ...