Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
245 views

middleware for every user defined alias/bash function used on command line; Mac/Ubuntu

I have a task that is assisting my scripting...it requires counting the amount of times I use each user defined command in .bash_profile. In other words, if I run on command like something defined as ...
codyc4321's user avatar
  • 410
0 votes
2 answers
1k views

combine multiple ifs bash

how can I simplify the following code if statements? Thank you function git_dirty { text=$(git status) changed_text="Changes to be committed" changes_not_staged="Changes not staged for ...
codyc4321's user avatar
  • 410
0 votes
1 answer
1k views

syntax error near unexpected token `(' bash

I am working on helpers to open my project when I get to work. I have so far: alias cdsloadmin="cd $SLO_ADMIN_SUITE_PATH; workon slo-admin-suite; atom $SLO_ADMIN_SUITE_PATH" runsloadmin() { ...
codyc4321's user avatar
  • 410
4 votes
1 answer
3k views

How to add blank lines above the bottom in terminal

In vim and many other text editors, you can scroll up the end of the file to the top of your screen while showing the rest of the lines as blank. But in terminal, by default, the end of line is fixed ...
Kohki Mametani's user avatar
1 vote
1 answer
764 views

When does mac/ubuntu use .bash_profile and/or .bashrc? [duplicate]

Possible Duplicate: Difference between .bashrc and .bash_profile Are they both the same type of file in terms of setting the bash terminal settings, and if no .bash_profile exists then it uses ....
user27449's user avatar
  • 7,088