Commit Graph

145 Commits

Author SHA1 Message Date
Sanchayan Maity 5abfc19676
Revert "fish: functions/gl: Pipe commit view to bat"
This reverts commit ec838cb54e.

We forgot that copying is not so easy when using bat or less.
2023-01-26 16:55:44 +05:30
Sanchayan Maity ec838cb54e
fish: functions/gl: Pipe commit view to bat
The recent tui changes to neovim cause some display issue after exiting
from it.

We need to provide the --pager option to bat for not exiting immediately
if the output size is smaller than the vertical size of the terminal.
See the --pager documentation in man bat. We use less -R instead of the
default less -RF.
2023-01-17 19:41:12 +05:30
Sanchayan Maity 5ed30a7796
fish: functions/dotg: Sort the results on basis of time
Idea adapted from
https://stackoverflow.com/questions/45500978/vim-fzf-sort-initial-results-on-file-date
2023-01-16 12:31:30 +05:30
Sanchayan Maity 62a933e451
fish: functions: Drop vale alias 2023-01-15 15:52:42 +05:30
Sanchayan Maity b31f41f8cb
fish: functions/gdt: Disable pager for default difftool
Now that we enable pager for difftool by default, we need to disable
it when using the default difftool which is neovim.
2023-01-14 18:58:51 +05:30
Sanchayan Maity c190b10e31
fish: functions/gm: Automatically detect master or main and merge
git merge master/main is a frequent enough operation. Automatically
detect whether the primary branch is master or main and merge.
2023-01-12 18:39:37 +05:30
Sanchayan Maity 7e4193fc82
Revert "fish: functions: Open dot graphs by default in xdot"
This reverts commit a827d25ac4.

xdot has been giving us problem with GStreamer dot graphs. May be
it is a bug with GStreamer but let us just use vimiv henceforth.
2022-12-30 13:26:21 +05:30
Sanchayan Maity 7310c77f78
fish: functions: Check return result of fzf selection 2022-12-26 14:47:03 +05:30
Sanchayan Maity 3279c97814
fish: functions: gp/gt: Use exact flag for fzf when using pass 2022-12-25 13:26:48 +05:30
Sanchayan Maity a6524a818a
fish: functions/gp: Add an alias for pass tessen 2022-12-17 14:58:32 +05:30
Sanchayan Maity 33151066a1 fish: conf.d/setup: Set environment variables for password store 2022-12-16 13:58:29 +05:30
Sanchayan Maity b7838e980d fish: functions/gt: Add helper for getting TOTP tokens with pass 2022-12-16 13:58:29 +05:30
Sanchayan Maity 1766986d8e fish: conf.d/setup: Setup environment variables required by go 2022-12-11 16:55:41 +05:30
Sanchayan Maity d06e32511f fish: functions: Add an alias to open bookmarks 2022-12-03 16:02:00 +05:30
Sanchayan Maity 28eccacade fish: setup: Set a needed environment variable for work 2022-11-30 17:20:46 +05:30
Sanchayan Maity e958aa027f fish: functions: Add helper to list library dependencies 2022-11-07 16:26:23 +05:30
Sanchayan Maity a827d25ac4 fish: functions: Open dot graphs by default in xdot 2022-11-05 18:37:19 +05:30
Sanchayan Maity 1e3eb7f7e0 fish: functions: Improve pipewire dot graph functions
xdot is more convenient to use and allows viewing dot file directly.
Generate svg only if requested.
2022-10-10 14:00:18 +05:30
Sanchayan Maity 7cb29dbd17 fish: functions: Add a helper to bring up or tear down VPN 2022-10-04 20:54:53 +05:30
Sanchayan Maity 68da927ad3 fish: conf.d: Drop setting of some environment variables
These have now been moved to environment.d and get set by systemd.

https://wiki.archlinux.org/title/Systemd/User#Environment_variables
2022-10-03 11:48:16 +05:30
Sanchayan Maity cb12ad28ab fish: Add fish-systemctl
https://github.com/wawa19933/fish-systemd

We do not use any plugin manager so just add this manually.
2022-10-01 09:56:18 +05:30
Sanchayan Maity edf40d4e04 fish: functions: Delete not much used systemd aliases 2022-10-01 09:56:18 +05:30
Sanchayan Maity e2880791b3 fish: functions: Add an alias for vale 2022-09-28 17:07:26 +05:30
Sanchayan Maity ca2d092166 Revert "fish/git: Manually set file type to git when calling nvim"
This reverts commit 2102b9983b.

Guess this got fixed in upstream commit 927d4d2.
2022-09-05 16:20:01 +05:30
Sanchayan Maity ee776a86a1 fish: functions: Add an alias for sudoedit 2022-09-01 09:30:04 +05:30
Sanchayan Maity eecc7b4021 fish: functions: Enable details in pipewire dot graphs 2022-08-19 16:59:19 +05:30
Sanchayan Maity 2102b9983b fish/git: Manually set file type to git when calling nvim
This reverts 7b84c0e again. Seems the issue is back with upstream.
2022-08-06 11:18:12 +05:30
Sanchayan Maity 16251e5d4c fish: conf.d/setup: Enable XDG support for ghcup 2022-08-03 20:31:41 +05:30
Sanchayan Maity 8aeabd9473 fish: functions: Add fzf versions of vgrep 2022-05-19 09:44:51 +05:30
Sanchayan Maity 68581433e3 fish: functions: Add aliases for ninja build
We need this frequently working with GStreamer.
2022-05-14 17:44:33 +05:30
Sanchayan Maity 8fd4ae0da9 fish: Drop all fzf + git related functions
vim-fugitive is all that is needed. We wrote these functions before
getting well versed with fugitive. These are not required anymore.
2022-05-06 12:04:35 +05:30
Sanchayan Maity 0afe1044c1 fish: functions/tsd: Add a helper to analyse GStreamer timestamps 2022-04-16 14:27:22 +05:30
Sanchayan Maity 800ec4ca64 fish: functions/gts: Add a helper to get column of interest from log files 2022-04-16 14:27:22 +05:30
Sanchayan Maity c936941188 fish: functions/fish_prompt: Update prompt symbol for unknown upstream
Use unicode symbol for replacement character to indicate upstream is
unknown.
2022-04-15 19:17:28 +05:30
Sanchayan Maity 2af3965179 fish: functions/rmdot: Add a helper to delete all dot files 2022-04-14 17:38:14 +05:30
Sanchayan Maity e6b71916e8 fish: functions/fish_prompt: Drop virtualfish
It increases the load time which is just annoying. Fuck Python
anyways.
2022-04-13 20:41:12 +05:30
Sanchayan Maity 478fede9e4 fish: Clean up with fish_indent 2022-04-12 18:27:01 +05:30
Sanchayan Maity c06bee9cb3 fish: Add an alias to transcode mkv to mp4 2022-04-09 13:17:55 +05:30
Sanchayan Maity 30245370ca fish: Add helper aliases for ffprobe 2022-04-08 21:20:26 +05:30
Sanchayan Maity 8a7567a8b1 Start tmux sessions using systemd
While starting the tmux sessions from fish worked some environment
variables were not getting picked up in tmux session.

For example DISPLAY is set after we log in and the graphical sway
session starts but since tmux sessions were started before that it
would be absent from the tmux session. We may be wrong about the
exact order and reasoning for this but atleast that is the observed
behaviour.

Fix this by defining a sway session target and making the tmux session
service dependent on it.
2022-04-04 18:07:50 +05:30
Sanchayan Maity 55685b3084 fish: Make life easier by setting GST_DEBUG_DUMP_DOT_DIR globally 2022-04-03 09:30:00 +05:30
Sanchayan Maity 59e7473bf3 fish: Add alias for difftastic as a difftool 2022-03-31 19:38:09 +05:30
Sanchayan Maity 8d44f5ced6 fish: functions/gdbt: Spawning GDB with tmux panes
Adapted from https://github.com/cyrus-and/gdb-dashboard/issues/63.
2022-03-29 15:16:02 +05:30
Sanchayan Maity 77f28cf4ba fish: functions/rgc/rgf: Do not colourise ripgrep output
This allows us to drop having to run AnsiEsc.
2022-03-28 17:10:31 +05:30
Sanchayan Maity ab2d063759 fish: setup: Disable colouring in log and debug output for GStreamer 2022-03-27 19:26:17 +05:30
Sanchayan Maity 8d216bc1e6 fish: setup: Drop TERM setting for kitty 2022-03-27 18:16:10 +05:30
Sanchayan Maity 81bf6122dc fish: functions: Use a new alias for verbose git status 2022-03-22 14:10:04 +05:30
Sanchayan Maity 5ed0951392 fish: Start tmux sessions on login 2022-03-17 09:14:06 +05:30
Sanchayan Maity f99925d532 fish: functions/ta: Rename to ta & allow selection via fzf 2022-03-17 09:03:21 +05:30
Sanchayan Maity a319c28964 fish: functions/fish_prompt: Add virtualfish 2022-03-15 00:12:05 +05:30