Commit Graph

46 Commits

Author SHA1 Message Date
Gwen Lofman
cdf8222aed Update text editor 2019-04-14 12:47:52 -04:00
Gwen Lofman
a2c8161d6d Add gitattributes and glitter to shell 2019-04-14 12:47:52 -04:00
Gwen Lofman
d705629e9c Describe git aliases 2018-06-21 15:20:52 -04:00
Gwen Lofman
eb58ee204d Port to MacOS 2018-06-21 15:13:42 -04:00
Gwen Lofman
60c605dbcd Update install script for new shell and rust alts
Install glitter and its dependencies to enable the shell prompt to
work
2018-05-12 14:42:44 -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
43b9feb098 Add git alias to track remote branches
Simplifies the process of grabbing a branch from a remote that
isn't already on the local computer.
2017-12-14 17:42:20 -05:00
Gwen Lofman
7141f9dd7b Remove trailing whitespace higlight
It's really annoying when writing commit messages, as it hilights
trailing spaces in the files that git generates.
2017-11-19 21:55:08 -09:00
Gwen Lofman
5b703de619 Differentiate git his and git lg aliases
Previously lg was just an alias for his, now his is the bare
pretty format, and lg includes the graph and decorations.
2017-11-19 21:53:39 -09:00
Gwen Lofman
08a033e267 Remove trailing whitespace 2017-09-27 14:26:00 -04:00
Gwen Lofman
18acef26e1 Add .vimrc profile to show trailing whitespace
Find trailing whitespace errors and highlight them in red to
identify when it may cause issues with git.

Show tabs explicitly to identify when source code uses tabs versus
spaces.

Add .vimrc symlink to .setup.sh script.
2017-09-27 14:22:58 -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
d101aa9ba8 Add README.md
Describes setup and installation of my dotfiles with a (very) brief description.
2017-07-10 19:41:49 -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
66d1975bc3 Add -e option to echo to support escape codes
Previously, colored echo output worked properly only when using
the `sh` command, and not when using `.` to invoke shell scripts.
2017-07-06 21:01:56 -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
1cfcdb9e96 Add color reference file
Stores lots of colors as variables
2017-07-06 01:41:09 -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
a9d2e5184e Change ahead and behind symbols to + and - 2017-07-05 22:02:32 -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
ecdbbf37fc Add missing shebang from install script 2017-07-05 21:14:18 -04:00
Gwen Lofman
50f0cb085d Use DIR variable to store dotfile directory
Remove hardcoded command from .bashrc
2017-07-05 21:13:35 -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
babe176b55 Add -e to echo to allow escape codes in prompts
Previously worked when using sh, but for future invocation through
bash with `. scriptname.sh`, prefer -e so codes are properly
escaped.
2017-07-01 13:35:53 -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
6728d038cd Add Atom extensions to install script
Mostly rust langage dependencies and theme and syntax theme I use.
2017-07-01 13:24:55 -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
dc2b18f4eb Prefer less intrusive -b over -f, fix symlink bug
Creates backup of destination files rather that performing a hard
overwrite, which can help in case distro hopping and something
breaks unexpectedly.

If running setup.sh from outside isntall.sh, setup does not have
access to DIR, cusing broken symlinks for all config files, yikes!
2017-06-30 14:11:46 -04:00
Gwen Lofman
47b505f45c Bootstrap scripts to get dotfiles up and running
Also installs certain system dependencies that I can't or shouldn't
get from a package manager.
2017-06-30 12:54:24 -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
2e93f0f0ce Input profile for auto-completion 2017-06-30 02:08:39 -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
Gwen Lofman
2b88d9ac81 Add git configuration folder
Includes git bash prompt dependencies and my gitconfig
2017-06-30 02:05:20 -04:00