Gifted Minecraft
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
kevinsons@lemmy.run to Linux Admin : Resources for Linux SysAdmin@lemmy.run · 2 years ago

How to make it such that, when running command, it automatically does SOME_ENV_VAR=value command? (something cleaner than aliases?) - Lemmy.run Fediverse

lemmy.run

external-link
message-square
0
fedilink
1
external-link

How to make it such that, when running command, it automatically does SOME_ENV_VAR=value command? (something cleaner than aliases?) - Lemmy.run Fediverse

lemmy.run

kevinsons@lemmy.run to Linux Admin : Resources for Linux SysAdmin@lemmy.run · 2 years ago
message-square
0
fedilink
hello friends, I am looking for a way to do what I described in the title. When running command command, I dont want to have to type SOME_ENV_VAR=value command every time, especially if there are multiple. I am sure youre immediately thinking aliases. My issue with aliases is that if I do this for several programs, my .bashrc will get large and messy quickly. I would prefer a way to separate those by program or application, rather than put them all in one file. Is there a clean way to do this?
alert-triangle
You must log in or register to comment.

Linux Admin : Resources for Linux SysAdmin@lemmy.run

linuxadmin@lemmy.run

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linuxadmin@lemmy.run

General Discussion for topics for Linux SysAdmin

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 1 user / week
  • 1 user / month
  • 1 user / 6 months
  • 1 local subscriber
  • 656 subscribers
  • 24 Posts
  • 2 Comments
  • Modlog
  • mods:
  • root@lemmy.run
  • Cody@lemmy.run
  • BE: 0.19.9
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org