mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-11-30 00:18:44 +01:00
add bahn.expert lookup command to nu config
This commit is contained in:
parent
3e8eb1e6d7
commit
9657b8771f
|
@ -882,6 +882,17 @@ def nev [ unit = day ] {
|
||||||
| format duration $unit
|
| format duration $unit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# TODO: intermediate stations
|
||||||
|
def bx [from: string to: string] {
|
||||||
|
let map = open ~/Docs/ril100map.json;
|
||||||
|
let start = $map | get ($from | str upcase) | first;
|
||||||
|
let dest = $map | get ($to | str upcase) | first;
|
||||||
|
|
||||||
|
let url = $"https://bahn.expert/routing/($start)/($dest)/0/";
|
||||||
|
print $url;
|
||||||
|
^bash -c $"nohup chromium '($url)' &";
|
||||||
|
}
|
||||||
|
|
||||||
alias gnix = cd ~/nix-configs;
|
alias gnix = cd ~/nix-configs;
|
||||||
alias grepo = cd ~/Documents/repos;
|
alias grepo = cd ~/Documents/repos;
|
||||||
alias wh = wormhole-rs;
|
alias wh = wormhole-rs;
|
||||||
|
@ -907,3 +918,5 @@ alias bash = echo $"(ansi red)no, fuck that shit!";
|
||||||
alias sh = echo $"(ansi red)no, fuck that shit!";
|
alias sh = echo $"(ansi red)no, fuck that shit!";
|
||||||
alias zsh = echo $"(ansi red)no, fuck that shit!";
|
alias zsh = echo $"(ansi red)no, fuck that shit!";
|
||||||
alias fish = echo $"(ansi red)no, fuck that shit!";
|
alias fish = echo $"(ansi red)no, fuck that shit!";
|
||||||
|
|
||||||
|
alias px = pulsemixer;
|
||||||
|
|
Loading…
Reference in a new issue