Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Feature: avoid this in Alias #110

c4ir0 started this conversation in Ideas
Discussion options

I faced a problem while making aliases i hope this note would help

(Note : deal with ~/.bashrc or ~/.zshrc according to the shell u use )

make sure first what shell do use the command below will let u know :

echo "$SHELL"

why do you have to know ..? because editing the ~/.bashrc while u use zsh and even resourcing or logging out will give no benefit since u configure a file for shell ur not currently using
commands :
if u use zsh ~> nano /.zshrc
if u use bash ~> nano /.bashrc and so on ..

You must be logged in to vote

Replies: 4 comments

Comment options

Great suggestion! I’ll have to submit a PR to add this information! Thanks for bringing this up!

You must be logged in to vote
0 replies
Comment options

I'd like to provide a counter argument.

The chapter to which you are referencing is called Creating custom bash commands. The title tells me that I need to personally convert concepts to my environment, if I choose to use something different than bash itself.

There is no end to this if you cater to an alternate shell. You can't possibly cover every solution, both present and future.

You must be logged in to vote
0 replies
Comment options

This is a valid point @FearTheBadger! Maybe just a warning mentioning that if the user uses a different shell then they need to update the corresponding file rather than trying to list all possible ones.

You must be logged in to vote
0 replies
Comment options

I'd like to provide a counter argument.

The chapter to which you are referencing is called Creating custom bash commands. The title tells me that I need to personally convert concepts to my environment, if I choose to use something different than bash itself.

There is no end to this if you cater to an alternate shell. You can't possibly cover every solution, both present and future.

it really worth to check that I wrote I faced a problem while making aliases i hope this note would help in bold meaning as a beginner you might ( or will ) face such a problem especially while using OS deploys other shells (not bash) by default , so take care ... but not meant to use alternative ways to do the same job in bash with other shells !!

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
enhancement New feature or request
Converted from issue

This discussion was converted from issue #57 on October 21, 2022 11:54.

AltStyle によって変換されたページ (->オリジナル) /