mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-12-05 03:02:34 +01:00
nix and nu related changes
This commit is contained in:
parent
01abdf5cb6
commit
9ce45bbc79
3 changed files with 27 additions and 6 deletions
|
@ -20,10 +20,32 @@ $env.config = {
|
|||
shell_integration: true
|
||||
use_kitty_protocol: true
|
||||
highlight_resolved_externals: true
|
||||
|
||||
history: {
|
||||
file_format: "sqlite"
|
||||
isolation: true
|
||||
}
|
||||
|
||||
keybindings: [
|
||||
{
|
||||
name: new_line_shift
|
||||
modifier: shift
|
||||
keycode: enter
|
||||
mode: vi_insert
|
||||
event: { edit: insertnewline }
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
def l [] { ls | sort-by type }
|
||||
def ll [] { ls -la | sort-by type }
|
||||
def la [] { ls -a | sort-by type }
|
||||
# Run-in-Background function
|
||||
def rbg [...argv] {
|
||||
# TODO: Use a plugin to track number of running jobs
|
||||
systemd-run --user ...$argv
|
||||
}
|
||||
|
||||
# Aliases
|
||||
def l [path: glob = "."] { ls $path | sort-by type }
|
||||
def ll [path: glob = "."] { ls -la $path | sort-by type }
|
||||
def la [path: glob = "."] { ls -a $path | sort-by type }
|
||||
alias nv = nvim
|
||||
alias nvide = neovide
|
||||
|
|
|
@ -140,7 +140,7 @@ pub fn populateEnvironment(env: *std.process.EnvMap) !bool {
|
|||
var b = delimitedWriter(bufstream.writer(), ':');
|
||||
|
||||
for ([_][]const u8{
|
||||
".local/mzte-nix/bin",
|
||||
".nix-profile/bin",
|
||||
".mix/escripts",
|
||||
".cargo/bin",
|
||||
".local/bin",
|
||||
|
|
|
@ -3,6 +3,5 @@
|
|||
(provide run)
|
||||
|
||||
(define (run)
|
||||
(define out (build-path (find-system-path 'home-dir) ".local" "mzte-nix"))
|
||||
(cmd "nix" "build" ".#mzte-nix" "--impure" "--out-link" out)
|
||||
(cmd "nix" "profile" "install" ".#mzte-nix" "--impure")
|
||||
(cmd "nix" "build" ".#cgnix" "--impure" "--out-link" "nix/cgnix/nix.lua"))
|
||||
|
|
Loading…
Reference in a new issue