Skip to main content

All Questions

Tagged with
0 votes
1 answer
198 views

How to have everything following a ZSH alias be placed in the middle of its definition?

I have this file: /Users/MYUSERNAME/asciidots/asciidots/__main__.py I want to alias this so that it runs as if it was in my current directory. I was thinking something like this: alias asciidots=&...
CATboardBETA's user avatar
0 votes
1 answer
739 views

Defining zsh aliases and functions systemwide

What's the most efficient way to export the functions/aliases defined in my .zshrc to be used anywhere. For example in my .zshrc _foo() { echo "bar" } And then invoke _foo in any script.
Belka h.j's user avatar
0 votes
1 answer
412 views

How to supress aliases errors in zsh?

I want to have single list of aliases that I source to my .zshrc on all my computers and sync. But on one computer I have docker installed, and on another I don't. And every time I open terminal get ...
ogbofjnr's user avatar
  • 125
0 votes
1 answer
333 views

What is the best way for storing and versioning his aliases/functions/symlinks?

actually I have these lines (exemplary) in my .zshrc file: . ${TOOLS_HOME}/cli/.cli_base . ${TOOLS_HOME}/cli/.cli_functions . ${TOOLS_HOME}/cli/.cli_symlinks This works fine so far. My only problem ...
m1well's user avatar
  • 101
0 votes
2 answers
135 views

Using dir var in an alias?

I have a directory variable and function as follows: coding_dir="~/Documents/coding" function f() { cd $1 && ls -a ; } And I want to create an alias as follows: alias rnd="f $coding_dir/...
Kevin's user avatar
  • 139
0 votes
1 answer
77 views

Zsh zinit load OhMyZsh plugin skipping aliases

I want to use these plugins using zinit to load git completions in zsh zinit wait lucid for \ OMZL::git.zsh \ OMZP::git But I don't care about the aliases, there are really too much aliases I ...
fchastanet's user avatar
0 votes
0 answers
302 views

Custom alias outside .zshrc but ZSH_CUSTOM doesn't work in kali

For reference this is not a duplicate: I reviewed other Q and A like this but it doesn't work for me. Background: I'm using Kali in parallels. To keep my .zshrc file tidy I decided to mkdir ...
ShifraSec's user avatar
0 votes
1 answer
510 views

zsh alias not being unaliased in zshrc

[leading dots elided because I don't want to type them] An alias--gl--is set to git pull by a plugin in my zshrc. I want to set it to a git log command. I'm on macOS and, as expected, /etc/zshrc is ...
meangrape's user avatar
  • 136
0 votes
0 answers
19 views

Generate zsh aliases from zsh script [duplicate]

I wrote a simple script for generating aliases in zsh shell. Here it is: for subject in $(find $path -maxdepth 2 -type d -print) do dir=$(printf -- "$subject\n" | sed 's|.*/||') alias &...
Fedja's user avatar
  • 115
0 votes
0 answers
90 views

Conditional Git alias within zsh: "parse error: condition expected: cd" [duplicate]

I'm trying to implement a simple stack of git-related aliases for my personal dotfiles. alias gs="[[ $(git rev-parse --is-inside-work-tree &> /dev/null) ]] || cd $D && git status -...
bmilcs's user avatar
  • 1
0 votes
1 answer
82 views

Scaping single quota in zsh alias

I like create any alias for docker commandas, and I need any alias use single quotes. I see post Escaping quotes in zsh alias but not work for me. Tried in .zshrc function dinfoip() { docker ...
Abdel Karim Mateos Sanchez's user avatar

15 30 50 per page
1
4 5 6 7
8