Skip to content

Update bashrc creation in install script #33

@andrewwoods

Description

@andrewwoods

Description

The current bashrc creation is pretty minimal. It just divides the file into sections, provides aliases for clocks, and default prompts. Version 3 has added several useful bash functions great for beginners and power users alike.

Expected Outcome

Create shortcuts for Opal-prefixed functions.

alias bak="opal:bak"
alias cdls="opal:cdls"
alias desc="opal:describe"
alias mkcd="opal:mkcd"
alias numseg="opal:numseg"
alias seg="opal:seg"
alias show="opal:show"
alias today="opal:today"
alias up="opal:up"

# @NOTE: the 'locate' command exists on many systems, hence the use of 'loc'
alias loc="opal:locate"

Provide a couple of useful general aliases

alias reload=". ~/.bashrc"

Ask during install if he or she would like to generate a config for:

  1. Vim ~/.vimrc
  2. Neovim /.nvimrc

Describe alternatives you've considered

I considered creating a config for both Neovim and Vim, but a lot of people don't even use Vim or Neovim, opting for a different editor. It's best to not create a file that he or she doesn't use.

Additional Information

Please select a label: Feature, Task, or Story

Metadata

Metadata

Assignees

No one assigned

    Labels

    TaskA normal ticket

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions