Commit graph

190 commits

Author SHA1 Message Date
569b6e893c
fish: conf.d/systemd-abbr: Show logs only for current boot 2024-03-26 14:57:09 +05:30
d18f26ab93
fish: functions: Check for git repository in git helpers 2024-03-10 14:54:56 +05:30
1b4fdb4e35
fish: conf.d/systemd-abbr: Update abbreviation for journalctl 2024-03-05 18:12:12 +05:30
e5e6abacbd
fish: conf.d: Add abbreviation for doas 2024-02-28 21:52:26 +05:30
175620e9b4
fish: functions: Switch from sudo to doas 2024-02-28 21:52:26 +05:30
de57054bd2
fish: config: Source zoxide 2024-02-23 21:28:17 +05:30
83d8e8938e
fish: functions: Add an alias for yazi 2024-02-23 21:28:17 +05:30
f3593d60d1
fish: functions: Execute fast-tags only if in a git project
In neovim, we run this after saving a file. However, when opening a
Haskell file which is outside of a project or in a directory which
has all other Haskell code, it would generate tags for every project
in this directory blocking neovim in the mean time.
2024-01-07 15:01:28 +05:30
1c31dba3a4
fish: conf.d/cabal-abbr: Add an abbreviation for cabal configure 2023-12-26 16:52:03 +05:30
2925d49c8e
fish: conf.d: Update Rust abbreviations
`--all` is deprecated and is just an alias to `--workspace`. Add an
abbreviation to exclude building of packages.
2023-11-04 10:42:15 +05:30
48e6b25a84
fish: functions: Use newer eza which is replacement of exa 2023-09-12 13:45:19 +05:30
dbc0672151
fish: functions: Add an alias for helix 2023-08-22 18:19:15 +05:30
96fe9893a1
fish: conf.d/cabal-abbr: Add a version of cabal build using --allow-newer 2023-07-01 13:12:44 +05:30
691e92d436
fish: functions: Add an alias for fast-tags 2023-06-20 16:58:12 +05:30
da58490e5a
fish: conf.d/cabal-abbr: Fix duplicate abbreviation with cpl 2023-06-14 20:17:35 +05:30
7000ebffb7
fish: conf.d/cabal-abbr: Add abbreviations for cabal-plan 2023-06-10 19:18:36 +05:30
0986b41c72
fish: conf.d: Add abbreviations useful for Rust 2023-06-10 19:18:28 +05:30
0fdc4b18c7
fish: functions: Drop aliases for cargo
We will introduce abbreviations in the next commit.
2023-06-10 13:30:08 +05:30
a01903d5b4
fish: conf.d/cabal-abbr: Add abbreviations for cabal-clean 2023-06-07 18:01:46 +05:30
10d42d0d42
fish: conf.d/cabal-abbr: Add abbreviations for cabal-edit & cabal-hoogle 2023-06-03 17:59:45 +05:30
a9fc35d297
fish: conf.d/cabal-abbr: Fix cabal install abbreviation 2023-05-31 10:29:39 +05:30
a3f8dbcb87
fish: conf.d/trash-cli-abbr: Add more abbreviations for rmtrash 2023-05-22 19:03:48 +05:30
f37e10c68c
fish: conf.d: Add some abbreviations for cabal
Taken from https://vrom911.github.io/blog/haskell-aliases.
2023-05-17 20:52:42 +05:30
572a54d9fd
fish: conf.d: Add abbreviations for git
Taken from https://github.com/lewisacidic/fish-git-abbr with some
minor changes and additions of our own.
2023-05-15 20:45:48 +05:30
9fc6d0eb2a
fish: Drop vgrep aliases and introduce abbreviations
We still keep the vgrep + FZF aliases.
2023-05-15 11:10:55 +05:30
22f5664cd6
fish: conf.d: Clean up unnecessary -a option for abbreviations 2023-05-11 18:16:11 +05:30
3851e99f1b
fish: functions: Rename to not conflict with git abbreviations 2023-05-10 14:24:40 +05:30
6474278ca1
fish: functions: Remove tmux and some git aliases
We will introduce equivalent ones with abbreviations.
2023-05-10 14:24:39 +05:30
1b5a8f5edb
fish: conf.d/setup: Set ripgrep config file path
ripgrep will not look in any predetermined directory for a config
file automatically. Instead, we need to set the RIPGREP_CONFIG_PATH
environment variable to the file path of our config file.
2023-05-09 16:19:07 +05:30
6fdaf3356f
fish: conf.d: Clean up unnecessary -g option for abbreviations 2023-05-06 13:11:03 +05:30
83c572019c
fish: conf.d: Add abbreviations for trash-cli and rmtrash 2023-05-06 13:09:37 +05:30
9363fc249b
fish: conf.d/setup: Set up all path related things at start 2023-05-05 10:54:38 +05:30
7779044f67
fish: conf.d/setup: Add rustup symlink path to PATH
See related
https://bugs.archlinux.org/task/78309?string=78309&project=5
aa625d449c
17eb57f5a8

We still need to keep this to use rust-analyzer via rustup. The other
option would be install the rust-analyzer package separately and not
use this via rustup.
2023-05-05 10:27:56 +05:30
dffb4856d1
fish: functions: Add an alias for global pnpm update 2023-04-27 17:39:59 +05:30
1369f826cb
fish: functions: Remove unused aliases 2023-04-27 16:51:19 +05:30
798cffa9f4
fish: functions: Add alias for detecting errors in media with ffmpeg 2023-04-27 16:51:19 +05:30
d9f9952ca1
fish: functions: Add aliases for meson
GStreamer now uses these meson commands instead of ninja. We need
these aliases with GStreamer frequently.
2023-04-27 16:51:19 +05:30
d1f66f1b13
fish: conf.d/setup: Drop fnm and switch to pnpm
Drop fnm and switch to pnpm for installing npm packages as well as
managing node versions.

Not using npm i -g has the added nicety of not having a node_modules
in /usr/lib.
2023-04-22 13:04:31 +05:30
e6c64c61ae
fish: functions/dotg: Do not add dot to output file name
If a file name was foo.dot the current implementation generated a
foo.dot.svg. Fix it to just output a foo.svg.

Also fix a bug, where we were not considering the provided dotpath.
2023-03-03 15:57:29 +05:30
2ab2c2255b
fish: functions: Make it easier to review code with difftool aliases
If no arguments are provided to the git difftool aliases, just invoke
it with the default `git difftool main...current-branch`. This is what
we will use most of the time anyway as this is exactly the command
needed when we want to review our own changes before pushing upstream
or reviewing some other merge request.
2023-02-25 18:00:07 +05:30
7b6cd2575c
fish: functions: Add an alias for checking weather 2023-02-25 18:00:07 +05:30
926937d075
fish: functions/gl: Enable graph view 2023-02-23 16:11:43 +05:30
e1be59cafa
fish: functions/dotg: Allow scrolling half a page up or down
Allow scrolling half a page up or down by binding keys to page up
or down actions.
2023-02-08 10:35:20 +05:30
080ba2c237
fish: functions: Drop nvim_profile
Since the recent TUI changes this does not work as intended.
2023-02-03 18:19:36 +05:30
210fc81fcd
fish: functions/glmd: Add an alias for formatting logs in markdown
Adapted from Heftig's (Jan Alexander Steffens) note on IRC

git config --global alias.mdlog 'log --reverse --pretty=format:"- **%s**  %w(0,2,2)%+b"'

This will format commits in a way that's nice for pasting into MR descriptions,
assuming the commit body is markdown.

Usually used like below

git mdlog @{u}.. | wl-copy
git mdlog origin/main.. | wl-copy
2023-01-30 12:26:05 +05:30
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
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
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
62a933e451
fish: functions: Drop vale alias 2023-01-15 15:52:42 +05:30
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