Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add line break when adding aliases #16

Open
henninghalvsb1 opened this issue Jan 23, 2025 · 0 comments
Open

Add line break when adding aliases #16

henninghalvsb1 opened this issue Jan 23, 2025 · 0 comments

Comments

@henninghalvsb1
Copy link
Collaborator

henninghalvsb1 commented Jan 23, 2025

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant