summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2022-04-21 14:38:59 -0400
committerBen Sima <ben@bsima.me>2022-04-21 14:39:22 -0400
commitfaa3ffcd9f11578badaa6dd44dd7fe454d2fa23d (patch)
tree7fd08ccefe7f296898d0db6a007357af2931e0cf /lib
parent240b9ced293902425b7061a2310d55909993d300 (diff)
Add forgit
Diffstat (limited to 'lib')
-rw-r--r--lib/common.nix10
-rw-r--r--lib/packages.nix1
2 files changed, 11 insertions, 0 deletions
diff --git a/lib/common.nix b/lib/common.nix
index 7059cba..4b189a7 100644
--- a/lib/common.nix
+++ b/lib/common.nix
@@ -6,6 +6,7 @@ let
homedir = builtins.getEnv "HOME";
in
{
+ nixpkgs.overlays = [ (import ../overlay.nix) ];
home = {
sessionVariables = {
GPGID = gpgid;
@@ -25,6 +26,12 @@ in
FZF_DEFAULT_COMMAND = "git ls-files --cached --others --exclude-standard | fd --type f --type l $FD_OPTIONS";
FZF_CTRL_T_COMMAND = "fd $FD_OPTIONS";
FZF_ALT_C_COMMAND = "fd --type d $FD_OPTIONS";
+ FORGIT_FZF_DEFAULT_OPTS = ''
+ --exact
+ --border
+ --cycle
+ --reverse
+ '';
};
# From the command line:
@@ -287,6 +294,9 @@ in
[[ -f "$DIR/nix.sh" ]] && . "$DIR/nix.sh"
[[ -f "$DIR/hm-session-vars.sh" ]] && . "$DIR/hm-session-vars.sh"
[[ -f "${homedir}/.bashrc.local" ]] && . "${homedir}/.bashrc.local"
+
+ source "${pkgs.forgit}/share/bash/forgit.plugin.zsh"
+
function cd() {
builtin cd "$@" && ls
}
diff --git a/lib/packages.nix b/lib/packages.nix
index 4fdb0d0..1bc8c49 100644
--- a/lib/packages.nix
+++ b/lib/packages.nix
@@ -75,6 +75,7 @@ in {
figlet
file
font-awesome_5
+ forgit
gcal
git-lfs
git-revise