Skip to content

Commit

Permalink
add atuin
Browse files Browse the repository at this point in the history
  • Loading branch information
Sathvik Birudavolu committed Mar 19, 2024
1 parent 4f664ac commit a933d6a
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 8 deletions.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
allowUnfree = true;
permittedInsecurePackages = [ "python3.9-requests-2.29.0" ];
};
overlays = attrValues (import ./overlays.nix {
overlays = attrValues (import ./myOverlays.nix {
inherit (inputs) nixpkgs-unstable nixpkgs-stable jrsonnet;
inherit (self) nixpkgsDefaults;
});
Expand Down
5 changes: 3 additions & 2 deletions home/fish.nix
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ in
interactiveShellInit = ''
set -g fish_greeting ""
fzf_configure_bindings --history=
fzf_configure_bindings --directory=\cs --variables=\e\cv
# Default kube editor
set -gx KUBE_EDITOR nvim
set -gx EDITOR nvim
Expand All @@ -216,8 +219,6 @@ in
# Select the `kensho` AWS profile by default
set -gx AWS_PROFILE kensho
fzf_configure_bindings --directory=\cs --variables=\e\cv
# Run function to set colors that are dependant on `$term_background` and to register them so
# they are triggerd when the relevent event happens or variable changes.
set-shell-colors
Expand Down
20 changes: 19 additions & 1 deletion home/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,15 @@ in
# https://github.com/ajeetdsouza/zoxide
programs.zoxide.enable = true;

programs.atuin = {
enable = true;
flags = [ "--disable-up-arrow" ];
settings = {
invert = true;
inline_height = 30;
};
};

home.packages = lib.attrValues
({
# Some basics
Expand Down Expand Up @@ -121,7 +130,10 @@ in
aws-iam-authenticator
go-jsonnet#ships with jsonnetfmt (issue with `jsonnet` build)
jrsonnet# is _blazingling_ fast
jsonnet-bundler
okta-aws-cli
grizzly# grafana cli
# atuin#shell history
# postgresql_16# Required for psql
postgresql# Required for psql
;
Expand All @@ -130,12 +142,16 @@ in
inherit (pkgs)
nodejs
poetry
black
# uv # let's just install it using pipx for now
go# Required for jsonnet-language-server
cargo# Required for rnix-ls
rustc
rustfmt
nixpkgs-fmt
shellcheck
pipx
python39
;

# Useful nix related tools
Expand All @@ -154,7 +170,9 @@ in
m-cli# useful macOS CLI commands
;
}) ++ [
(pkgs.python310.withPackages (ps: with ps; [ pipx black pynvim ]))
# (pkgs.python39.withPackages (ps: with ps; [
# pipx
# ]))
pkgs.unixtools.watch
];
}
File renamed without changes.
8 changes: 4 additions & 4 deletions nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ require("lazy").setup({
event = "VeryLazy",
dependencies = "nvim-lua/plenary.nvim",
config = function()
vim.api.nvim_create_autocmd({ "BufWritePost" }, {
command = [[!cd ~/Documents/gdrive/notes && git add . && git commit -m "update notes" && git push origin]],
pattern = "*.norg",
})
-- vim.api.nvim_create_autocmd({ "BufWritePost" }, {
-- command = [[!cd ~/Documents/gdrive/notes && git add . && git commit -m "update notes" && git push origin]],
-- pattern = "*.norg",
-- })

require("neorg").setup({
load = {
Expand Down

0 comments on commit a933d6a

Please sign in to comment.