Nix shell uses zsh now, refactored shell-aliases.nix
This commit is contained in:
parent
b145eba49c
commit
1eb661726b
2 changed files with 70 additions and 14 deletions
|
|
@ -13,6 +13,16 @@
|
|||
initContent = ''
|
||||
ZSH_AUTOSUGGEST_USE_ASYNC=false
|
||||
fastfetch -c examples/11
|
||||
if [[ -n "$IN_NIX_SHELL" ]]; then
|
||||
PROMPT="%F{blue}[nix-shell]%f $PROMPT"
|
||||
fi
|
||||
nix() {
|
||||
if [[ "$1" == "develop" ]]; then
|
||||
command nix develop -c zsh "''${@:2}"
|
||||
else
|
||||
command nix "$@"
|
||||
fi
|
||||
}
|
||||
'';
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue