Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Seting Bash Aliases for Cloudron Terminal

Seting Bash Aliases for Cloudron Terminal

Scheduled Pinned Locked Moved Solved Support
webterminal
8 Posts 4 Posters 1.5k Views 6 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ShaiS Offline
    ShaiS Offline
    Shai
    wrote on last edited by girish
    #1

    I've been able to create aliases for the Cloudron terminal by creating the file

    /app/data/.bash_aliases
    

    putting the aliases there and then running

    source /app/data/.bash_aliases
    

    every time I log into the terminal. I was assuming that adding a .bashrc file wouldn't do anything. Is there any way for me to be able to skip the "source" step?

    rmdesR 1 Reply Last reply
    0
    • ShaiS Shai

      I've been able to create aliases for the Cloudron terminal by creating the file

      /app/data/.bash_aliases
      

      putting the aliases there and then running

      source /app/data/.bash_aliases
      

      every time I log into the terminal. I was assuming that adding a .bashrc file wouldn't do anything. Is there any way for me to be able to skip the "source" step?

      rmdesR Offline
      rmdesR Offline
      rmdes
      wrote on last edited by
      #2

      @shai Interesting, I always wanted to have this, gonna try this on my side
      I wish we could choose to use ZSH or else and have a full blown shell on the web terminal 🙂

      1 Reply Last reply
      1
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #3

        Currently there is no way because the .bashrc is not editable. I guess we never thought of the Web Terminal as some sort of login shell.

        1 Reply Last reply
        0
        • robiR Offline
          robiR Offline
          robi
          wrote on last edited by
          #4

          would that require a new base image?
          or simply a source line wrapped in an if exist statement in the start script for the web shell?

          Conscious tech

          girishG 1 Reply Last reply
          0
          • robiR robi

            would that require a new base image?
            or simply a source line wrapped in an if exist statement in the start script for the web shell?

            girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #5

            It seems bash has a argument --rcfile. So, we can just fix it when we invoke the docker exec.

            1 Reply Last reply
            1
            • girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #6

              OK, I have made a fix to source in /app/data/.bashrc in web terminal. This requires a new Cloudron release, so it will be in next release.

              If you use the CLI tool, just update to 4.11.0 and the cloudron exec will automatically source in that file with the current Cloudron release (6.2.8)

              1 Reply Last reply
              3
              • robiR Offline
                robiR Offline
                robi
                wrote on last edited by
                #7

                I love it when an inspiration comes together!

                Conscious tech

                1 Reply Last reply
                1
                • girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #8

                  Looks like this change broke WP - https://forum.cloudron.io/topic/5385/wp-cli-not-working-on-6-3-5

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Bookmarks
                  • Search