Added auto completion for nmcli c u on nushell

Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
This commit is contained in:
TuDatTr
2023-08-03 18:31:50 +02:00
parent 5fa0681986
commit 49118bbc01
6 changed files with 17 additions and 6 deletions

View File

@@ -548,7 +548,15 @@ export def-env own_ranger [] {
cd $lastdir
}
def pwd_xsel [] { pwd | xsel -b }
def pwd_xsel [] {
let path = $"(pwd)";
$"cd `($path)`"| xsel -b;
$"Copied `($path)`";
}
def load_env [] {
open .env | lines | parse "{name}={value};" | transpose -r | into record | load-env
}
alias ll = ls -la
alias la = ls -a
@@ -565,6 +573,7 @@ alias defaultres = xrandr --output HDMI1 --transform 1.00,0,0,0,1.00,0,0,0,1
alias latexmk = ^latexmk -f -pdf -interaction=nonstopmode
alias ranger = own_ranger
alias xselp = pwd_xsel
alias lenv = load_env
# git
alias gpa = git push all --all