Giter Club home page Giter Club logo

Comments (3)

danielyxie avatar danielyxie commented on August 15, 2024

Added a way to delete aliases in v0.22.0

To be honest I'm not sure whether command arguments should be interpreted as aliases. If someone wanted to pass the string "foodnstuff" into a script as an argument and had an alias for "fns=foodnstuff" I would think letting them pass fns in as the argument instead of foodnstuff would be a good thing. Similarly if someone wanted to create a single alias for all of the arguments:

alias sargs1="foodnstuff 500000 10" 
run foo.script sargs1

I feel like that would be convenient

I'll think about it/get other feedback and I'll leave this issue open for now

from bitburner.

MrNuggelz avatar MrNuggelz commented on August 15, 2024

I think it would be a good idea to solve this problem by using an alias system like in zsh. There you are able to define aliases which only work at the start of a command, like you would in bash, but you also have the ability to define global aliases which work an any part of a command. This way you are able to use a global alias for parameters but are also able to define normal aliases like above.

from bitburner.

danielyxie avatar danielyxie commented on August 15, 2024

Addressed in next update thanks to MrNuggelz

from bitburner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.