From 8212c6050e8a1248e8e8b3031e871bd981912611 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Fri, 3 Feb 2023 22:43:32 +0000 Subject: [PATCH] add bc calculator --- nixos/home-manager/cli.nix | 1 + nixos/home-manager/programs/zsh.nix | 11 ++++------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/nixos/home-manager/cli.nix b/nixos/home-manager/cli.nix index 662dc6d9..91d3faef 100644 --- a/nixos/home-manager/cli.nix +++ b/nixos/home-manager/cli.nix @@ -12,6 +12,7 @@ android-tools appimage-run aria + bc bfg-repo-cleaner binutils bitwarden-cli diff --git a/nixos/home-manager/programs/zsh.nix b/nixos/home-manager/programs/zsh.nix index 7d3091dd..f3717ad7 100644 --- a/nixos/home-manager/programs/zsh.nix +++ b/nixos/home-manager/programs/zsh.nix @@ -1,8 +1,4 @@ -{ - config, - pkgs, - ... -}: { +{ config, pkgs, ... }: { programs.zsh = { enable = true; history = { @@ -18,7 +14,7 @@ oh-my-zsh = { enable = true; - plugins = ["vi-mode" "git" "python" "history-substring-search" "tmux"]; + plugins = [ "vi-mode" "git" "python" "history-substring-search" "tmux" ]; }; initExtra = '' @@ -63,13 +59,14 @@ tmate = "tmux detach-client -E 'tmate;tmux'"; cat = "bat -p"; rg = "rga"; + bc = ''BC_ENV_ARGS=<(echo "scale=2") \bc''; }; }; programs.direnv = { enable = true; enableZshIntegration = true; - nix-direnv = {enable = true;}; + nix-direnv = { enable = true; }; }; home.file.".config/starship.toml".text = ''