All Questions
5 questions
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 ...
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 ...
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() { ...
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 ...
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 ....