aab3d5bee3
fish: functions: Move HieDb helpers to functions
...
Using abbreviations for shell commands does not seem clean. They also
seem out of place along with other cabal abbreviations.
While at it, we also add a helper to nuke all Haskell build artefacts.
This is convenient instead of running cabal clean in every project or
relying on Kondo.
For deleting directories, we replace -delete with -exec rm -rv {} + or
-exec rm -rv {} \ which should delete directories recursively without
error. + at the end will result in rm -rv file1 file2 ... while using
\ will result in rm -rv file1; rm -rv file2; ...
2024-11-30 18:44:10 +05:30
d821233538
fish: conf.d/cabal-abbr: Use jobs argument for cabal install
2024-11-23 19:14:15 +05:30
8d8eb07508
fish: conf.d/cabal-abbr: Helper for generating hie with multi-project root
...
See
https://github.com/josephsumabat/static-ls/issues/127#issuecomment-2392751273
2024-11-23 19:14:15 +05:30
5c00f581bf
fish: conf.d/cabal-abbr: Add abbreviation for generating hiedb
2024-11-19 21:51:03 +05:30
b47a94f3e5
fish: Set environment for non systemd user services/applications
...
Environment variables in environment.d directory only affects the users
systemd unit. For example, while these environment variables are set in
tmux which we start via systemd, these are not set when we open terminal
outside of tmux.
See related,
https://github.com/systemd/systemd/issues/7641
2024-11-14 23:29:41 +05:30
41f307d8a6
fish: conf.d: Add abbreviations for Zig
2024-11-06 18:39:03 +05:30
43f6e5331b
fish: functions/vb: Remove build directory before compiling
2024-11-02 13:22:52 +05:30
d1c0772207
fish: conf.d/cabal.abbr: Improve cabal build & add exec
...
The cabal exec command is sometimes helpful to debug why
HLS is not working. If that command complains HLS refuses
to work.
2024-10-27 18:49:31 +05:30
25b49ee661
fish: functions: Open PDFs in Zathura with fuzzel
...
Taken from
https://blog.akaisuisei.org/communicating-with-zathura-via-dbus.html
2024-10-20 21:51:51 +05:30
e46c3ab531
fish: Drop fzf key bindings
2024-09-27 19:01:30 +05:30
f0408ef342
fish: conf.d: Use shorter abbreviations for cargo build
2024-09-19 16:03:56 +05:30
d9e9c35877
Revert "fish: config: Source zoxide"
...
This reverts commit de57054bd2
.
2024-08-05 19:19:52 +05:30
135d59f37c
fish: functions/gl: Fix object ID ambiguous error
...
7 digit hash is sometimes not enough to correctly show
the commit.
2024-07-16 19:52:20 +05:30
cf4d2ea2b4
fish: conf.d/git-abbr: Set word diff option for git diff
2024-07-16 12:15:45 +05:30
adc8f0137a
Revert "fish: functions: Add an alias for system update"
...
This reverts commit a52037d68e
.
2024-07-15 19:48:18 +05:30
5a80d2706b
fish: conf.d/git-abbr: Don't grep in binary files
2024-07-12 17:47:17 +05:30
bab7ac5178
fish: Drop all usages of vgrep
...
While we have been using vgrep for quite a while it has become
increasingly annoying since it uses a global cache instead of
a different cache for each directory which means using vgrep
to search across different directories at the same time is
absolutely useless.
2024-07-12 17:44:49 +05:30
f725a4e354
fish: conf.d/git-abbr: Use no recurse submodules option for reset
...
Since we set submodule.recurse = true by default, calling reset
will automatically result in --recurse-submodules being passed
as true to git reset which is not what we want.
Also see,
https://git-scm.com/docs/git-config#Documentation/git-config.txt-submodulerecurse
2024-07-10 20:02:12 +05:30
1b96983efa
fish: functions: Add an alias for opening log files in /tmp
2024-05-15 20:32:21 +05:30
a52037d68e
fish: functions: Add an alias for system update
2024-05-06 19:22:01 +05:30
41f25229dc
fish: functions/vpn: Invoke wg-quick with doas
2024-04-24 11:29:53 +05:30
d1fa95daa9
fish: functions: Add a different variant for perf top on a thread
2024-04-20 12:32:02 +05:30
0f8e52bae1
fish: functions/vb: Do not run the next command on failure
2024-04-03 17:35:12 +05:30
d9fdf69a78
fish: functions: Add a build helper for neovim
2024-04-01 10:16:42 +05:30
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