Commit Graph

27 Commits

Author SHA1 Message Date
ca50b7646c fish: Remove git branch from prompt
This was cool but it breaks with the latest version of fish. Instead of
trying to fix this I'd rather use a less hacky solution.
2021-07-07 10:15:23 -04:00
06bd933fa8 fish: Use native hostname variable
$hostname is now defined by default so we don't need to do anything
here. I assume it wasn't always like this since otherwise I wouldn't
have needed to call `hostname` in the first place.
2021-05-14 19:00:12 -04:00
102dd8a0c2 Switch from dog to bat
"dog" was an alternative I used to cat for syntax highlighting. Now that
bat exists (which is written in rust, by the way), there is no need to
use "dog" and I highly recommend anyone interested to use bat instead.
2021-05-14 17:28:36 -04:00
23f6525aff fish: Don't start X at login
Now we can do some cool stuff in tty1 when we decide to not start a
display manager.
2021-05-14 17:16:58 -04:00
e2ca722963 meta: Miscellaneous updates
I wanted to commit some more stuff for 2020. Better late than never,
right? The most significant change is probably in fish_prompt.fish.
I fixed an edge case where the directory in question could be the
same as the user's username.
2020-12-31 23:56:22 -05:00
36f0364d45 fish: Add abbreviations for yarn 2019-01-15 23:01:57 -05:00
1777de5b11 fish: Remove --verbose flag from git branch abbreviation
Now that I understand more about how `git branch` works, I really use
it for more than just the --verbose flag.
2019-01-01 13:57:22 -05:00
e37ea93566 fish: Add kitty set-colors abbreviation
This abbreviation is useful when you change your color scheme with
wal and plan to or have multiple kitty windows open (since kitty
itself will still be using the color scheme it initially loaded
from the config file).
2019-01-01 13:50:59 -05:00
571c03bb55 meta: Add git tag information to fish prompt
Now that I understand how tags work in git, keeping track of the current
revision number with the shell prompt is actually very useful.
2018-12-17 15:45:39 -05:00
71179c2e67 fish: Remove git grep abbreviation
As cool as "gg" is to type, I never used git grep since ripgrep works
just as great (and is almost always easier to read as well).
2018-12-06 18:11:07 -05:00
72411885cd fish: Add color to man pages
Note that this will affect the output of `env` since color codes are
used. Using a function to invoke man is not ideal since fish uses its
own function for its man pages.
2018-12-05 23:31:06 -05:00
1ad54203d2 meta: Add git branch information to fish prompt
If I stayed on zsh instead of switch to fish, I would've probably never
known how easy it is to add certain information to the prompt. Since
the prompt itself is just a function, you can run any commands you want
inside it to get information, including git commands.

This commit adds the current branch you're on only when inside a git
repository, and only when you're not in a tty.
2018-12-05 11:45:29 -05:00
8b490aa2d0 fish: Remove git status -s abbreviation
It turns out that the short version of git status is not as informative
as the regular git status, making it impractical to use.
2018-12-03 18:44:09 -05:00
3b2fee629f fish: Add git merge and git tag abbreviations 2018-12-03 12:33:24 -05:00
9f27d4e13a meta: Remove launch dependency
Now that I know how to use terminal multiplexers, and now that I
understand more about how shells and terminals work, the launch
dependency is no longer necessary.

Additionally, *too many* abbreviations is difficult to use in the long
term, no matter how short the commands are. Since I don't need to launch
programs from the terminal as often anymore (now that I use rofi and
other programs), this change makes sense.
2018-12-01 18:18:44 -05:00
d7a0419c2b fish: Remove 'hub' and 'lab' functions
Typing git repositories in the format 'hub' and 'lab' accepted actually
took more time than simply copy/pasting the URL for `git clone`. Sometimes
we didn't even *want* to change our current directory, which made these
functions impractical.

Having to use `git clone` directly helps us remember what we're actually
doing when we clone a repository, and should be preferred over aliases
and other functions that try to do the same.
2018-12-01 15:57:26 -05:00
7fc6547a8b fish: Remove 'git home' function
It turns out that I don't use this function at all, so I'm removing it.
2018-12-01 15:28:52 -05:00
26c57a6b8d fish: Add tty-specific prompt
Since most (if not all) ttys will not support the arrow unicode
character, we remove it from the tty prompt.
2018-11-30 18:43:41 -05:00
ab546aed60 neofetch: Make new stow package with config.conf
Instead of relying on a fish function to configure neofetch,
we can use config.conf instead.

Since neofetch is an independent program, we also make a new stow
package for it, instead of relying on the fish config being present.
2018-11-23 13:24:30 -05:00
73e6cfec28 misc: Update dotfiles
lium and lfox are not needed anymore since I use rofi.
2018-10-27 15:48:08 -04:00
3d541e96fd stow: Add directories for fish, gpg, and tmux
Note that all these new directories are spread across multiple commits
since I don't want any one commit to be *too* big.
2018-10-22 15:17:19 -04:00
cb4278514d Drop zsh support in favor of fish
Really, there is no reason to use zsh when fish exists, at least not for
my use case. Maintaining one set of shell config files is easier than
two, so I'm removing the zsh files.

Some other changes in this commit include:

- The addition of the current user and hostname to the fish prompt
- The addition of some zsh functions I re-implemented in fish
- The removal of the dircolors file (not needed with exa anyway)
- The removal of some aliases I never used
-
2018-09-07 13:30:22 -04:00
33f9dbfbf0 Change waterfox to firefox
As much as I enjoyed using Waterfox, the update to Firefox (and its
developer tools) is pretty nice. Since many add-ons now support this
new version of Firefox, I think it's now time to make the switch.
2018-08-31 15:05:07 -04:00
3da69d1dcb Add exports to fish config 2018-04-11 23:25:38 -04:00
500983f369 Fix the fish prompt
set_color must be normal here to avoid the next character
not being the default color.
2018-04-08 16:00:15 -04:00
ce70ea53e9 Major refactor to the modularity between shells
This commit:

- Moves aliases to .aliases.sh. Aliases can now be used with
  both zsh and fish.
- Adds the ability to automatically create an upstream remote
  with the hub function.
- Finalizes the fish prompt to be consistent with zsh.
2018-02-26 23:56:29 -05:00
dd6cbe1ae8 Make the stow directory the root directory 2018-02-20 23:36:11 -05:00