-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.envrc
More file actions
32 lines (27 loc) · 660 Bytes
/
Copy path.envrc
File metadata and controls
32 lines (27 loc) · 660 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env bash
# the shebang is ignored, but nice for editors
# if type -P lorri &>/dev/null; then
# eval "$(lorri direnv)"
# else
# echo 'while direnv evaluated .envrc, could not find the command "lorri" [https://github.com/nix-community/lorri]'
# use nix
# fi
# if [[ $IN_NIX_DEV != "yes" ]]; then
# IN_NIX_DEV="yes" use flake
# # zsh -c 'cargo --version'
# fi
use flake
banner="auto-desk"
echo
cargo_v="$(zsh -c 'cargo --version')"
# git_s=$(git status)
# echo -e "---\n# $banner" | mdcat
# echo
# figlet 'auto-desk'
# echo
echo -e "---\n# $banner\n\n$cargo_v\n\n# Git Status\n\n" | mdcat
echo
git status
echo
echo "---" | mdcat
# echo