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
2 answers

Typescript type aliases and string interpolation

I've been using Typescript for a while and am currently working with type aliases which have the following form: type Animal = "cat" | "dog"; let a1_end = "at"; let a1: Animal = `c${a1_end}` As far as I understood, only the values "cat" or "dog"…
IlikedCPlusPlus
  • 57
  • 1
  • 10
1
vote
1 answer

How to alias class attributes when creating NamedTuple?

I want to alias project_version with init_version, but since NamedTuple is a factory method I'm having difficulty in doing this. from typing import NamedTuple class ProjectMetadata(NamedTuple): """Structure holding project metadata derived from…
Blueynuey
  • 23
  • 2
1
vote
1 answer

Git Bash: Trying to assign current branch to variable in .bashrc alias script, but variable remains empty

I am trying to register a script alias in my .bashrc for easy switching from the current branch to master, pulling, switching back to the branch, and rebasing. Currently, my alias script looks like this: alias gmm="branch=$(git rev-parse…
1
vote
0 answers

How can I abbreviate the relative address using sshfs-win to map network drive?

I tried to connect Windows-10(Client) with Linux(Host). I successfully mapped network drive with SSHFS-Win(which is the only solution because of my company security), but I got quite long address. (FolderName)(\\sshfs\(user id)@(ip…
HyunjiO
  • 11
  • 1
1
vote
1 answer

I want to show a column with some special charcter in SQL

I need to extract a column[Employee] in DB as "Employee(Emp)" in Hive. Is that possible we can handle in hive. Select Employee as Employee(Emp) from Emp_Table But it seems doesnt work as expected
1
vote
1 answer

Build aliases for a Python porject installed via pip

What is the simplest way to make an alias for python -m myproject when the user installs the package myproject via pip? Can poetry manages that? Remainder: python -m myproject launches myproject/__main__.py.
projetmbc
  • 1,332
  • 11
  • 26
1
vote
0 answers

How can I make the origin of aliases in Cypress more apparent from the it/spec files?

My team is using aliases to set some important variables which are used within the it('Test',) blocks. For example, we may be running the following command in a before step: cy.setupSomeDynamicData() Then the setupSomeDynamicData() method exists in…
Napster134
  • 11
  • 1
1
vote
1 answer

Nuxt3 aliases for directories in nuxtconfig

I would like to create aliases for some directories in a Nuxt 3 project, however, I was not able to make them work just from the information provided in the documentation. I've tried registering them like this: export default defineNuxtConfig({ …
Matej
  • 155
  • 1
  • 15
1
vote
0 answers

Angular Module Federation Shared Module with Npm Alias

I have two Angular 14 projects. I'm using the @angular-architects/module-federation package to create a host and a remote. The issue that I am encountering is that I need to share a library as a singleton, but that library is aliased in the…
mikg
  • 11
  • 4
1
vote
1 answer

PostgreSQL : Cannot use column alias in CASE statement

I cannot use column alias in CASE clause in the following example: SELECT ((SELECT SUM(t2.amount) FROM trans t2 WHERE u.mail = t2.paid_to)- (SELECT SUM(t2.amount) FROM trans t2 WHERE u.mail = t2.paid_by)) AS "balance", (CASE WHEN balance <…
user20804899
1
vote
3 answers

Snowflake query with column alias in join failing

This query works in one account but throws an error (below) in another. Is there a parameter that affects this behaviour? Both accounts have the same Snowflake version (6.41.2). Error Message with cte_one as ( select 'aaa' a ,'bbb' b …
1
vote
1 answer

How to define an alias for a command with options in a Powershell Profile using functions?

I already have a bunch of command aliases defined for git. Here's all of them: del alias:gp -Force del alias:gl -Force del alias:gcm -Force function get-gst { git status } set-alias -name gst -value get-gst function get-gco ([string]$branch) { …
infinite789
  • 325
  • 1
  • 8
1
vote
1 answer

What are some other possible sources Git Bash could be pulling from other than ~/.bashrc and ~/.bash_profile

I have customized Git Bash for windows to my liking, but I was trying to add some new aliases today and I seem to have messed up. When I load up bash now, I get multiple alias: not found messages in my terminal (i.e: bash: alias: pycharm not found),…
UntoldDawn
  • 25
  • 4
1
vote
0 answers

PoweShell, Set-Alias in Module

I have a PowerShell module that contains only function definitions, and some Set-Alias commands to create some aliases to those defined functions. Through some trial and error, I've discovered that if the Module is loaded, none of the aliases are…
YorSubs
  • 3,194
  • 7
  • 37
  • 60
1
vote
1 answer

-bash no such file or directory, but it exists

I've recompiled vim with the ruby flag for command-T awesomeness, and I wrote a script that will automatically do this for me on any machine I ssh into (and run the script), but an issue that I'm running into is that when I alias the newly compiled…
wiznaibus
  • 661
  • 3
  • 8
  • 17
1 2 3
99
100