File tree Expand file tree Collapse file tree 4 files changed +31
-1
lines changed Expand file tree Collapse file tree 4 files changed +31
-1
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ export def trans [
56
56
path : " /get" ,
57
57
params : {
58
58
q : $to_translate ,
59
- langpair : ($from + " %7C " + $to ),
59
+ langpair : ($from + " | " + $to ),
60
60
of : " json" ,
61
61
key : $apikey ,
62
62
de : $user
Original file line number Diff line number Diff line change
1
+ #create virtual env
2
+ export def create-virtualenv [dir_name :string = " venv" ] {
3
+ python3 - m virtualenv $dir_name
4
+ }
5
+
1
6
export def activate [] {
2
7
print (" 'overlay use venv/bin/activate.nu' copied to clipboard!" )
3
8
" overlay use venv/bin/activate.nu" | xsel -- input -- clipboard
Original file line number Diff line number Diff line change @@ -619,4 +619,24 @@ export def "ps parents" [pid?: int] {
619
619
}
620
620
621
621
get-parents $all_processes $current_process
622
+ }
623
+
624
+ #current used keybindinds
625
+ export def get-used-keybindings [] {
626
+ let $keybindings = $env .config.keybindings | update modifier {split row ' _' | sort | str join ' _' }
627
+
628
+ let $modifiers = $keybindings | get modifier | uniq -- count | sort-by count - r | update count null | transpose - idr
629
+
630
+ $keybindings
631
+ | select keycode modifier
632
+ | group-by keycode -- to-table
633
+ | update items {|i |
634
+ $i.items.modifier
635
+ | reduce - f $modifiers {|value acc |
636
+ update $value ' ✅'
637
+ }
638
+ }
639
+ | flatten
640
+ | sort-by group
641
+ | table -- abbreviated 1000
622
642
}
Original file line number Diff line number Diff line change @@ -974,4 +974,9 @@ export def "apps-update rustc" [] {
974
974
rustup override set stable-x86_64-unknown-linux-gnu
975
975
rustup update
976
976
# rustup self uninstall
977
+ }
978
+
979
+ #update ollama
980
+ export def "apps-update ollama" [] {
981
+ curl - fsSL https://ollama.com/install.sh | sh
977
982
}
You can’t perform that action at this time.
0 commit comments