Skip to content

Add line break when adding aliases #16

@henninghalvsb1

Description

@henninghalvsb1

When running setup.sh which adds the kca-aliases, it should start with a new line, else it might affect the code on the last line of the file.

Example, if .bashrc looks something like this:

alias pf="npm run prettier:fix"

When running setup.sh it becomes:

alias pf="npm run prettier:fix"alias kca_init='/home/sb1a.sparebank1.no/a504aa0/git/your_code_as_a_crime_scene/scripts/init.sh'
alias kca_hotspots='/home/sb1a.sparebank1.no/a504aa0/git/your_code_as_a_crime_scene/scripts/hotspots.sh'
alias kca_complexity='/home/sb1a.sparebank1.no/a504aa0/git/your_code_as_a_crime_scene/scripts/complexity_plot.sh'

which ruins the existing command (see the first line).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions