Questions tagged [alias]

An alias is an alternative name. In computer science, the most common contexts are command aliases in shells, column aliases in databases, or variable references in languages like C++.

For bash aliases use the tag.

4406 questions
1
vote
0 answers

Vite config files and aliases

I have files I want to import based on environment. Currently I import it into the file like this import { myConfig } from "../config/my-config"; however I would like to do it based on environment import the correct config file based on…
TommyD
  • 913
  • 3
  • 17
  • 32
1
vote
1 answer

bash alias to echo and execute command which has arguments

I am trying to write a bash alias to execute a command, and echo it as well. Tried various methods mentioned in StackOverflow and other places, but nothing seems to work for this scenario. My current alias (a much shortened example) is: alias…
singleX
  • 375
  • 4
  • 13
1
vote
1 answer

Error with using alias for executable with mpirun/mpiexec

I have set up an alias for my LAMMPS executable, lmp_mpi, in my .zshrc file. Using just the alias on its own works fine, but when coupled with mpirun/mpiexec, which have worked previously when I just used the file path for lmp_mpi instead of the…
1
vote
0 answers

Python Selenium Geckodriver autoinstall: permission denied when getting Firefox version

I was running a python script that has been fine on several different distros, but is giving me trouble on Gentoo. The problem command is geckodriver_autoinstaller.install(): Traceback (most recent call last): File…
Stonecraft
  • 860
  • 1
  • 12
  • 30
1
vote
0 answers

VS Code replacing all TypeScript path aliases with single backslash character

I'm currently working on a React Native app using Expo, and the project has TypeScript path aliases set up. The aliases seem to work fine; imports resolve correctly, and the app builds as expected. However, VS Code never correctly autocompletes the…
Brandon
  • 385
  • 1
  • 8
1
vote
1 answer

Powershell - alias for Array values?

is it possible to use some short names / aliases for values in Array ? For example, we must test connection to FDQN but we would like to display result as short names. $array = @( "youtube.com" , "google.com" ) $result = test-connection $array…
1
vote
1 answer

Sequelize Error: You have used the alias values in two separate associations. Aliased associations must have unique aliases

This is my code: public getSpecs = async (req: Request, res: Response, next: NextFunction) => { try { const MasterSpecCategory = models[res.locals.project].master_spec_category; const MasterSpec =…
Meet Savaj
  • 38
  • 6
1
vote
1 answer

Issues with Paths when Saving Commit Messages using Notepad++ from Linux WSL

I installed the Ubuntu WSL on my Windows 11. To learn Linux and Use Git, of all things. I was given Instructions to change my .bash_profile located on Linux Home directory (~) and create an alias like this: alias npp='/mnt/c/"Program…
malta59
  • 97
  • 1
  • 9
1
vote
2 answers

Bash Alias with ternary?

Still dipping my toes in bash coding and trying to crate a 1 liner alias to: if 'perms' is entered w/out a parameter, it does a stat -c '%a - %n' * else if 'perms' is entered with a parameter it does stat -c '%a - %n' Goal is if no…
J. Scott Elblein
  • 4,013
  • 15
  • 58
  • 94
1
vote
1 answer

How to set an alias of a command and it's argument in Windows Powershell?

I am on a Windows 11 machine (Powershell v5.1) and I am trying to alias the rust rewrite of coreutils to appropriate commands in powershell. For example, I need to call coreutils echo to access the echo command and similarly for mv, cat, cp etc. So…
Aditya Wagh
  • 182
  • 1
  • 2
  • 14
1
vote
0 answers

Path aliasing not working with Next/React/Jest tests

I know this issue has been raised a few times but I've tried every solution I can find on stack overflow with no joy. My path aliasing works fine in terms of rendering content, but when I try to run a test, it says Cannot find module '@/components'…
1
vote
1 answer

Unable to display object alias as object header inside a frame or package

Using plantuml I would like to create an object with an alias, so I can manipulate the object by means of it's actual name/ID (bar and baz in my example), but its header will show the alias ("Foo"). Also, I would like to group objects in some frame…
msoutopico
  • 357
  • 3
  • 15
1
vote
2 answers

Creating Custom Friendship Associations Based Around an "Event" Model

I've been researching friendship models using roles, custom associations, etc. But I haven't been able to connect my project to the concepts in a clear way. I want a "User" to be able to create an event I'm calling a "Gather". A User can also attend…
1
vote
2 answers

expected

to contain @selectedText

What i want to do is compare that the text in class "ellipsis-2-lines text-lg text-weight-semibold" is the same as h1 on next open page this test throws an error: expected to contain @selectedText I think…
Julia
  • 23
  • 3

1
vote
0 answers

Elasticsearch alias not being created on index creation

I'm using the go-elasticsearch API in my application to create indices in an Elastic.co cloud cluster. The application dynamically creates an index with a template and then starts indexing documents. The template includes an alias name and look like…
ef0ntan
  • 53
  • 1
  • 9
1 2 3
99
100