Questions tagged [aliases]

169 questions
37
votes
6 answers

Elasticsearch list indices sorted by name

How can the following query's results be sorted by index name? curl "localhost:9200/_aliases?pretty"
10 cls
  • 1,325
  • 2
  • 17
  • 31
13
votes
2 answers

Escaping characters in bash alias

This was the alias: # make a tmux session in working dir with the name of the dir alias th='tmux new -s $(pwd | tr '\/' '\n' | tail -n 1)' It doesn't work because of the escape characters or due to the ', single quotes, inside the…
Charlie OConor
  • 857
  • 1
  • 9
  • 18
11
votes
2 answers

Zshell aliases like !gst inside vim?

Is there a way to run my zshell aliases inside vim, with the output going to a new split? I'm using oh-my-zsh's git aliases like gst, and I am unable to do :!gst inside vim. Thanks
user2736286
  • 563
  • 6
  • 18
10
votes
3 answers

How do you create "Aliases" in Apache Tomcat?

I am working on a web application that allows users to upload attachments. These attachments are stored on a different drive than that of the web application. How can I create an alias (equivalent to Apache HTTP server's aliases) to this drive so…
Dan Polites
  • 6,750
  • 10
  • 50
  • 56
9
votes
1 answer

Global type aliases in C#

let me start right away with the code: class Item { public int highestBuyOffer; public int lowestSellOffer; [...] } I would like to prevent people using this class from accidently assigning a buy offer value to a sell offer value and…
MBargus
  • 91
  • 1
  • 2
6
votes
1 answer

How to use 'go to path' with aliases in VScode

Using VScode I can go open a file that I am importing using CTRL + click into the import declaration: By doing that the VScode will open the file index.js at the folder ./code I also can create and export alias to some files using…
The Apprentice
  • 185
  • 3
  • 13
6
votes
3 answers

Creating git aliases

I am trying to add the following aliases in ubuntu alias l=log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short $ source ~/.aliases bash: alias: --decorate: not found bash: alias: --decorate: not…
may
  • 1,073
  • 4
  • 14
  • 31
6
votes
2 answers

Change hostname for AWS ec2 instance

I have an AWS EC2 instance with domain like http://ec2-some-ip-addres.compute-1.amazonaws.com/ Now I want to change this url (add a custom domain which is not registered) to some small alias like testing.webserver.com etc. Can we do that? I have…
Rahul Sagore
  • 1,588
  • 2
  • 26
  • 47
6
votes
0 answers

Can not lock tables because of doctrine internal aliases

I am trying to execute this code : $em->getConnection()->exec('LOCK TABLES Portfolio t0 WRITE, User u1_ READ); $portfolio = $this->doctrine->getRepository('Portfolio')->findOneBy(array('user'=>$user->getId(), 'game'=>$game->getId())); $assets =…
hakimoun
  • 315
  • 2
  • 9
6
votes
4 answers

Set command alias for print in python?

In bash you can give a command an alias like so: alias e=echoset alias e="echo blah" I want to know how to do the same thing in Python. I know you can give classes aliases, but when I try to give a command (the print statement for example) an…
DanielTA
  • 6,038
  • 3
  • 23
  • 27
5
votes
1 answer

PowerShell Aliases, PSScriptAnalyzer and VSCode

Is there a way to suppress PSScriptAnalyzer from highlighting alias warnings? e.g. 'rm' is an alias of 'Remove-Item'. Aliases can introduce possible problems and make scripts hard to maintain. Please consider changing alias to its full…
YorSubs
  • 3,194
  • 7
  • 37
  • 60
5
votes
3 answers

How to alias a tag in Git?

I have a Git command alias to checkout the latest tag from a repository: ~/.gitconfig: checkout-latest = !git checkout $(git describe --tags `git rev-list --tags --max-count=1`) So I can use it in properly tagged repositories like this: $ git…
Bengt
  • 14,011
  • 7
  • 48
  • 66
5
votes
3 answers

How to create aliases in c#

How do i create aliases in c# Take this scenario class CommandMessages { string IDS_SPEC1_COMPONENT1_MODULE1_STRING1; } say i create an object of this class CommandMessages objCommandMessage = new CommandMessages(); To i need to write…
Gaddigesh
  • 1,953
  • 8
  • 30
  • 41
5
votes
2 answers

Aliases in Cassandra CQL

My question is about using aliases in CQL queries. For example in SQL we can write: SELECT p.name FROM Persons as p Is there something similar in CQL?
user2090879
  • 683
  • 2
  • 10
  • 16
4
votes
6 answers

Angular 11 tsconfig Path Aliases not Recognized

I am working with Angular 11 and trying to use short imports like import {smthg} from '@common' instead of import {smthg} from '../../../common' But I always get errors in IDEA: TS2307: Cannot find module '@common' or its corresponding type…
kerm
  • 653
  • 1
  • 5
  • 15
1
2 3
11 12