added starship prompt

This commit is contained in:
Schrottkatze 2023-11-13 14:07:25 +01:00
commit ca61775d84
6 changed files with 139 additions and 7 deletions

View file

@ -241,7 +241,7 @@ $env.config = {
use_ansi_coloring: true
bracketed_paste: true # enable bracketed paste, currently useless on windows
edit_mode: vi # emacs, vi
shell_integration: false # enables terminal shell integration. Off by default, as some terminals have issues with this.
shell_integration: true # enables terminal shell integration. Off by default, as some terminals have issues with this.
render_right_prompt_on_last_line: false # true or false to enable or disable right prompt to be rendered on last line of the prompt.
hooks: {
@ -801,8 +801,18 @@ def start_zellij [] {
start_zellij
def nsp [
program: string
] {
nix shell $"nixpkgs#$program"
}
def lcr [
file_extension: string
] {
ls **/*.$file_extension | each {|file| open $file.name | lines --skip-empty | length} | math sum
}
alias gnix = cd ~/nix-configs;
alias grepo = cd ~/Documents/repos;
alias wh = wormhole-rs;
alias nix-shell = nix-shell --run 'nu -li';
alias nsp = nix-shell --run 'nu -li' -p;