Skip to content
This repository has been archived by the owner on Oct 12, 2021. It is now read-only.

Commit

Permalink
More shell and git config
Browse files Browse the repository at this point in the history
  • Loading branch information
lucperkins committed Jul 9, 2020
1 parent c0fea67 commit aded7ef
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion git.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ in {
};
extraConfig = {
core = {
editor = "/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code --wait";
editor = "vim";
pager = "delta --dark";
whitespace = "trailing-space,space-before-tab";
};
Expand Down
1 change: 1 addition & 0 deletions home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ in {
curl
dhall
direnv
doctl
elixir
erlang
exa
Expand Down
9 changes: 7 additions & 2 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ let
cat = "bat";
dk = "docker";
k = "kubectl";
dc = "docker-compose";
szsh = "source $HOME/.zshrc";
reload = "home-manager switch && szsh";
garbage = "nix-collect-garbage";
Expand Down Expand Up @@ -40,13 +41,17 @@ in {
export NIX_PATH=$HOME/.nix-defexpr/channels''${NIX_PATH:+:}$NIX_PATH
fi # added by Nix installer
# Load environment variables; this approach allows me to not commit secrets
# like API keys and such
# Load environment variables from a file; this approach allows me to not
# commit secrets like API keys
if [ -e ~/.env ]; then
source ~/.env
fi
# Start up Starship shell
eval "$(starship init zsh)"
# kubectl autocomplete
source <(kubectl completion zsh)
'';

#oh-my-zsh = {
Expand Down

0 comments on commit aded7ef

Please sign in to comment.