The railway plugin provides some completions for railway CLI.

Installation

Add antigen bundle AhmedElywa/zsh-railway to your ~/.zshrc.

  • Clone the repository inside your oh-my-zsh repo:
git clone https://github.com/AhmedElywa/zsh-railway ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-railway
  • Enable it in your .zshrc by adding it to your plugin list and reloading the completion:
plugins=(… zsh-railway)

Manual installation

  • Clone the repository:

      git clone git://github.com/AhmedElywa/zsh-railway.git
    
  • Include the directory in your $fpath, for example by adding in ~/.zshrc:

      fpath=(path/to/zsh-railway $fpath)
    
  • You may have to force rebuild zcompdump:

      rm -f ~/.zcompdump; compinit
    

Completions

Railway Commands
add
connect
docs
environment
help
init
link
list
login
logout
logs
open
protect
run
status
unlink
up
variables
version
whoami
Railway Options
-h --help
-v --version

Alias

Alias Command
rw railway
rwa railway add
rwc railway connect
rwe railway environment
rwh railway help
rwi railway init
rwl railway link
rwin railway login
rwout railway logout
rwo railway open
rwp railway protect
rwr railway run
rws railway status
rwul railway unlink
rwu railway up
rwv railway variables