Commit Graph

25 Commits

Author SHA1 Message Date
Gwen Lofman
a2c8161d6d Add gitattributes and glitter to shell 2019-04-14 12:47:52 -04:00
Gwen Lofman
12bbff3e67 Update dotfiles and prompt 2018-04-11 12:56:24 -04:00
Gwen Lofman
b0964d454a Update MATLAB path to custom install directory 2018-04-11 12:56:24 -04:00
Gwen Lofman
27d1ee94b5 Add matlab install directory to path
Allows launching matlab through the command-line by simply typing
`matlab` into the terminal.
2017-09-27 14:22:11 -04:00
Gwen Lofman
763edb0fd8 Update __git_stats usage information 2017-07-10 19:36:29 -04:00
Gwen Lofman
6eaaf2ab39 Change prompt colors and remove redundant code
Remove code setting colors to empty string in else branch, as it
turns out if they do not exist instead of erroring out, the script
will simply not add the strings.
2017-07-10 19:36:29 -04:00
Gwen Lofman
ea603cff74 Add ahead/behind determination to git prompt
Uses git rev-parse to determine how far ahead or behind we are
from the upstream branch, with + denoting # of commits that do not
appear on the upstream, and - denoting # commits that do not appear
on the local branch.

If the branch does not have an upstream, or if the repository is on
its initial commit, the ahead/behind determination works as desired.
2017-07-10 19:36:29 -04:00
Gwen Lofman
cacdaace48 Alter git stats formatting eliminating brackets
Change pending improved empty brace elimination, which accounts
for escape codes, perhaps using awk or something more advanced.
2017-07-09 02:36:03 -04:00
Gwen Lofman
1ade47ce3f Add preliminary custom git prompt
Missing certain functionality like determining how far ahead or
behind a certain commit is from upstream, and performs really
badly, but uses a nice format syntax and provides a decent start.
2017-07-08 23:22:42 -04:00
Gwen Lofman
250205b4b6 Add more colors to prompt
Making way for adding git prompt features
2017-07-08 23:21:12 -04:00
Gwen Lofman
1937fd8f11 Fix exit code issue, move __set_prompt to file end
For some reason, moving the declaration of the prompt command to
the bottom of the file fixes an issue where exit codes weren't
properly captured in the function, so error codes never displayed.
2017-07-06 21:03:09 -04:00
Gwen Lofman
106d97dfa6 Add update function to update packages
Updates debian/system packages and packages specific to different
package managers such as apm, npm, stack, and rustup
2017-07-06 01:41:58 -04:00
Gwen Lofman
93e7e23630 Use PROMPT_COMMAND to build prompt more safely
Allows proper expansion of values, using local variables, and more
complicated conditional logic.
2017-07-06 01:02:28 -04:00
Gwen Lofman
67ff130518 Update web-install with alert & better exit code
Now informs the user when the file has finished installing.

Also creates better temp-file name so, if the program is running in
multiple terminals, it doesn't interfere with other web-install'd
files.

Change dotfile source order so I can use aliases (like `alert`)
inside of functions.
2017-07-06 01:00:50 -04:00
Gwen Lofman
ff3fc4c7eb Add usage prompt and early-exit for web-install
Exit early when no URL is provided, and describe proper usage of
web-install.
2017-07-05 21:41:20 -04:00
Gwen Lofman
5194b47776 Move non-prompt related code from .prompt
Move aliases for color support to alias file, move exports to env
2017-07-05 21:12:57 -04:00
Gwen Lofman
62664b150f Add useful aliases and functions 2017-07-02 00:40:42 -04:00
Gwen Lofman
6184cd2455 Move non-prompt related lines out of .prompt
Move auto-completion related lines ot .env.
2017-07-02 00:38:04 -04:00
Gwen Lofman
a8a036e058 Rename system scripts for syntax highlighting
Add .sh extension so atom can detect the proper syntax highlighting
to use.  Allows for easier reading and debugging of scripts.
2017-07-01 13:33:50 -04:00
Gwen Lofman
5f9d9df1e8 Fix issue with grep alias in .prompt
--colo.shr=auto is not found, colo=auto is (for some reason).
2017-07-01 13:28:30 -04:00
Gwen Lofman
96d39452b0 Add cargo packages to path 2017-07-01 13:22:32 -04:00
Gwen Lofman
614ba2cd89 Drop broken line for setting git prompt theme
Perhaps move this to the install script for bash-git-prompt
2017-06-30 20:35:24 -04:00
Gwen Lofman
f8b124d05e Fix bash aliases: ls that shows only directories
Previously had a syntax error.
2017-06-30 20:32:50 -04:00
Gwen Lofman
219e949da9 Update prompt, functions, and move bashrc
Fixes issues with sourcing files
2017-06-30 12:54:09 -04:00
Gwen Lofman
fbc1116971 Add bash profile files
System contains individual components of the bashrc, which sources
them in the specified order.

Bash profile simply sources bashrc so they have identical values.
2017-06-30 02:07:19 -04:00