Commit Graph

65 Commits

Author SHA1 Message Date
Donovan Glover
60c2561fec
fish: Show tasks when opening a new terminal
Note that in the future I may simply use something else instead.
2022-12-15 16:10:20 -05:00
Donovan Glover
7eb4952e3e
meta: Add elementary kitty diff support
Having image diffs in the terminal is very cool, however I ultimately
decided against using kitty's diff feature due to using the existing
colors of the shell being non-trivial.
2022-12-15 16:08:45 -05:00
Donovan Glover
143dab4c27
fish: Add ranger abbreviation
This makes using ranger much more convenient.
2022-11-02 21:03:51 -04:00
Donovan Glover
b366e2445b
fish: Use single instance for ranger kitty terminals
This should slightly improve performance when an existing kitty instance
is already available.
2022-11-02 18:40:03 -04:00
Donovan Glover
a449ddfbec
fish: Export TERMCMD="kitty"
This change makes ranger open new terminal instances with kitty instead
of xterm.
2022-10-24 11:14:11 -04:00
Donovan Glover
02123d0bc4
fish: Add taskwarrior abbreviations
After many years of searching for an optimal task management workflow,
it seems like taskwarrior is the most ideal solution for me.
2022-10-23 21:38:46 -04:00
Donovan Glover
8f643378dd
fish: Add ex function
This is the command I use to easily extract files with unar, which
automatically handles different character encodings.
2022-07-30 10:40:53 -04:00
Donovan Glover
ad28ef8dcf
fish: Add wav2flac
This used to be a separate script in my ~/.local/bin, however the script
is short enough that it doesn't need to be a separate file, and I don't
use it outside of the shell anyway.
2022-07-30 10:35:00 -04:00
Donovan Glover
c050cede4a
fish: Add abbreviation for japanese locale 2022-07-30 08:24:45 -04:00
Donovan Glover
89361ae0af
fish: Add abbreviation for ansible-playbook
Note that right now abbreviations are only added once to improve startup
time, although the difference may be negligible on modern hardware.
2022-07-30 08:15:06 -04:00
Donovan Glover
f223c6c2f6
fish: Add du abbreviation 2022-07-30 00:33:25 -04:00
Donovan Glover
2fa0d928ef
fish: Add vagrant abbreviations 2022-07-30 00:32:46 -04:00
Donovan Glover
a06b1d06cb
fish: Replace youtube-dl with yt-dlp 2022-07-30 00:30:37 -04:00
Donovan Glover
6db6521e7c
fish: Add docker abbreviations 2022-07-29 21:08:21 -04:00
Donovan Glover
ae900bda97
meta: Replace ripgrep config with alias
Stowing an entire config directory for one line was too funny to not
change, so I converted it to an alias instead.
2022-07-29 17:56:38 -04:00
Donovan Glover
917e50c37f
meta: Replace httpie config with fish functions
This simplifies our dotfiles a bit since we no longer need to worry
about stowing a separate httpie config.
2022-07-29 17:18:12 -04:00
Donovan Glover
7078dcbe67
fish: Add utf16 conversion support
Similar to the previous commit, this makes dealing with files from Japan
easier.
2022-07-29 13:30:18 -04:00
Donovan Glover
6aae63d66f
fish: Add shift_jis conversion support
A lot of files from Japan are encoded in the shift_jis character
encoding. This abbreviation makes it easy to change those files to utf8.
2022-07-29 13:27:44 -04:00
Donovan Glover
b0d63997db
fish: Alias mv to mv -i
This is for peace of mind so we avoid accidentally moving something
where something already exists.
2022-07-28 10:57:16 -04:00
Donovan Glover
d4f214f5fb
meta: Set the browser at the window manager level
This fixes an issue where the specified browser wouldn't be used when
dealing with a non-shell environment.
2022-07-28 03:00:49 -04:00
Donovan Glover
5ed54c3ec9
fish: Add go support
Note that the GOPATH is also a hidden directory now.
2022-07-28 02:59:08 -04:00
Donovan Glover
60ce281c8c
fish: Add wal completions
I wrote a script that generated wal completions 4 years ago. Although
the patch was never merged, pywal is a great tool and I can still use
the completions personally, so I might as well add them here.
2022-04-12 10:16:37 -04:00
Donovan Glover
0e58d7478d
fish: Add git clone abbreviation 2022-04-12 10:03:24 -04:00
Donovan Glover
f01915654c
fish: Add fzf key bindings
This lets us do cool things like alt+c to easily cd into a directory
with fuzzy search.
2022-04-11 09:41:08 -04:00
Donovan Glover
37bdcdcf49
fish: Add abbreviation for df
Now we can get a useful version of df without having to remember the
options to use.
2022-04-11 09:07:02 -04:00
Donovan Glover
9674210774
fish: Ignore lost+found with exa
This makes browsing the root of ext4 partitions nicer.
2022-04-09 09:44:25 -04:00
Donovan Glover
b0b528f76b
meta: Remove XDG_CURRENT_DESKTOP=KDE
This was cool when we had KDE-specific applications, but since I'm
prioritizing ranger and nautilus now, dolphin isn't needed. Since I'm
focusing heavily on terminal and web-based applications, there is less
need to customize KDE applications specifically.

Two other advantages to this is that I no longer have to manually update
the colors in kdeglobals, and most if not all of the environment can be
programmatically set up with minimal effort.
2022-03-22 09:34:19 -04:00
Donovan Glover
62c0fe97ac
fish: Enable git discovery across filesystem
This is mainly to get rid of the warning when using "git status" where
git doesn't exist when the current partition isn't the same as the root
partition.
2022-03-11 10:06:04 -05:00
Donovan Glover
3f2e408ded
fish: Add paru to abbreviations
Now it's possible to type "p" for paru instead of having to type
"pacman" or "sudo pacman". This is mostly for convenience, since I think
there's still some merit to typing things out the standard way.
2022-03-08 13:07:46 -05:00
Donovan Glover
4a627247a3
fish: Increase memory usage of node
This fixes an issue where we'd previously run out of memory while
developing with Gatsby.
2022-01-01 20:45:01 -05:00
Donovan Glover
92d31bfae4
fish: Specify ripgrep config path 2022-01-01 20:44:12 -05:00
Donovan Glover
da3bb48fe6
fish: Add deno, cargo, yarn, local to path
I added this a while ago but never committed it. Pretty useful for
software development.
2022-01-01 20:42:02 -05:00
Donovan Glover
0ea61dc6de
fish: Remove task abbreviations
I no longer use task.
2022-01-01 20:33:16 -05:00
Donovan Glover
8b8788b835
Add starship
Note that I initially didn't use starship since I didn't like how it
used multiple lines, although it's fairly easy to configure to your
liking.
2021-07-07 10:22:36 -04:00
Donovan Glover
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
Donovan Glover
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
Donovan Glover
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
Donovan Glover
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
Donovan Glover
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
Donovan Glover
36f0364d45
fish: Add abbreviations for yarn 2019-01-15 23:01:57 -05:00
Donovan Glover
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
Donovan Glover
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
Donovan Glover
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
Donovan Glover
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
Donovan Glover
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
Donovan Glover
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
Donovan Glover
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
Donovan Glover
3b2fee629f
fish: Add git merge and git tag abbreviations 2018-12-03 12:33:24 -05:00
Donovan Glover
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
Donovan Glover
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