Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Creating persistent alias / environment variables

Featured Replies

I did some research on how to create permanent aliases, as typing "ls -l" etc. every time is getting annoying. I researched the topic and made a txt file which I referenced in the go file. However, I couldn't get this to work on startup.

 

Is there a way to do this?

  • 1 year later...

did you find out if it's possible? Im a bit tired of unraid having these limitations :P.

  • Author

Unfortunately, I did not. Now that it's been more than a year since posting this, my guess would be to make a User Script that runs on every startup?

  • 5 months later...

That is indeed the answer that i've seen mentioned. I came here to see if anyone had something ready-made :) I didn't find it, so here's what i did:

 

Settings > User Scripts > New Script. I called it "startup-sequence.sh" to hark back to my Amiga days ♥️

 

#!/bin/bash

# create alias each boot:
echo "alias ll='ls -l'" >> /root/.bash_profile

 

I set it to run on first array start. It simply appends that line to `.bash_profile` when the array is first started. Don't know if that's appropriate/proper. But it works :) I don't know anything about the `go` file and i wanted something quickly as i've been doing a lot of organising today.

 

btw, in doing that i noticed that `v` is already aliased for `ls -lA`. But i still kept `ll` because it's pretty ubiquitous.

  • 9 months later...

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.