mirror of
https://github.com/blahai/nyx.git
synced 2025-01-18 19:10:21 +00:00
Fish: fix
This commit is contained in:
parent
446d0d9f49
commit
f23686bb4a
1 changed files with 4 additions and 13 deletions
|
@ -59,13 +59,10 @@
|
||||||
|
|
||||||
functions = {
|
functions = {
|
||||||
os-age = ''
|
os-age = ''
|
||||||
function os-age
|
stat / | awk '/Birth: /{print $2 " " substr($3,1,5)}'
|
||||||
stat / | awk '/Birth: /{print $2 " " substr($3,1,5)}'
|
|
||||||
end
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
build-iso = ''
|
build-iso = ''
|
||||||
function build-iso
|
|
||||||
cd ~/.config/nixos
|
cd ~/.config/nixos
|
||||||
nix build .#nixosConfigurations.epimetheus.config.system.build.isoImage
|
nix build .#nixosConfigurations.epimetheus.config.system.build.isoImage
|
||||||
'';
|
'';
|
||||||
|
@ -73,21 +70,15 @@
|
||||||
# Credit for these 3
|
# Credit for these 3
|
||||||
# https://www.reddit.com/r/linux/comments/1fq0za8/comment/lp1ybdn
|
# https://www.reddit.com/r/linux/comments/1fq0za8/comment/lp1ybdn
|
||||||
disks = ''
|
disks = ''
|
||||||
function disks
|
lsblk -o NAME,MOUNTPOINT,FSTYPE,FSUSE%,SIZE
|
||||||
lsblk -o NAME,MOUNTPOINT,FSTYPE,FSUSE%,SIZE
|
|
||||||
end
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
gr = ''
|
gr = ''
|
||||||
function gr
|
set GROOT (git rev-parse --show-toplevel 2>/dev/null); and cd $GROOT; or return $argv
|
||||||
set GROOT (git rev-parse --show-toplevel 2>/dev/null); and cd $GROOT; or return $argv
|
|
||||||
end
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
mkcd = ''
|
mkcd = ''
|
||||||
function mkcd
|
mkdir -p -- $argv[1] && cd $argv; or return $status
|
||||||
mkdir -p -- $argv[1] && cd $argv; or return $status
|
|
||||||
end
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue