From 3a140c7db7264ec933686a853db6013e09d5a79f Mon Sep 17 00:00:00 2001 From: Uttarayan Mondal Date: Fri, 23 Jun 2023 11:54:49 +0530 Subject: [PATCH] [fix] Add stuff --- config/nushell/.gitignore | 1 + config/nushell/config.nu | 4 +- config/nushell/env.nu | 5 + config/nushell/history.txt | 188 ------------------------------------- config/tmux/tmux.conf | 1 + 5 files changed, 9 insertions(+), 190 deletions(-) create mode 100644 config/nushell/.gitignore delete mode 100644 config/nushell/history.txt diff --git a/config/nushell/.gitignore b/config/nushell/.gitignore new file mode 100644 index 00000000..a3e737a8 --- /dev/null +++ b/config/nushell/.gitignore @@ -0,0 +1 @@ +history.txt diff --git a/config/nushell/config.nu b/config/nushell/config.nu index 4f15d994..dac42f8b 100644 --- a/config/nushell/config.nu +++ b/config/nushell/config.nu @@ -406,10 +406,10 @@ let-env config = { float_precision: 2 # the precision for displaying floats in tables # buffer_editor: "emacs" # command that will be used to edit the current line buffer with ctrl+o, if unset fallback to $env.EDITOR and $env.VISUAL use_ansi_coloring: true - edit_mode: emacs # emacs, vi + edit_mode: vi # emacs, vi shell_integration: true # enables terminal markers and a workaround to arrow keys stop working issue # true or false to enable or disable the welcome banner at startup - show_banner: true + show_banner: false 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: { diff --git a/config/nushell/env.nu b/config/nushell/env.nu index e209f640..42a4d264 100644 --- a/config/nushell/env.nu +++ b/config/nushell/env.nu @@ -61,3 +61,8 @@ let-env NU_PLUGIN_DIRS = [ # To add entries to PATH (on Windows you might use Path), you can use the following pattern: # let-env PATH = ($env.PATH | split row (char esep) | prepend '/some/path') +# macOS ARM64 (Apple Silicon) +let-env PATH = ($env.PATH | split row (char esep) | prepend '/opt/homebrew/bin') + +# Linux +# let-env PATH = ($env.PATH | split row (char esep) | prepend '/home/linuxbrew/.linuxbrew/bin') diff --git a/config/nushell/history.txt b/config/nushell/history.txt deleted file mode 100644 index e1c2f730..00000000 --- a/config/nushell/history.txt +++ /dev/null @@ -1,188 +0,0 @@ -ls -ls | sort -ls | sort-by type -ls | sort-by size -config nu -config env -:q -nu -aichat -aichat --info -aichat --info | line 1 -aichat --info | read 1 -aichat --info | lines -ls -ls | sort-by time -ls | sort-by -ls -ls | sort-by modified -cp IMG20220828111* ~/Pictures/Stickers/ -ls -ls | sort-by size -ls | sort-by size | filter -ls | sort-by size | filter size > 10GB -ls | sort-by size | filter (size > 10) -ls | sort-by size | filter (size<10) -man nu -man filter -which filter -help fileter -help filter -ls | sort-by size | filter {|s| s.size > 10} -ls | sort-by size | filter {|s| s > 10} -ls | sort-by size | filter {|s| $s.size > 10} -ls | sort-by size | filter {|s| $s.size > 10GB} -ls | sort-by size | filter {|s| $s.size > 500MB} -ls | sort-by size | filter {|s| $s.size < 500MB} -ls | sort-by size | filter {|s| $s.size < 500MB } -ls | sort-by size | filter {|s| $s.size < 500MB } -ls | sort-by size | filter {|s| $s.size > 500MB } -ls | sort-by size | filter {|s| $s.size > 500MB } | sum -ls | sort-by size | filter {|s| $s.size > 500MB } | help sum -help sum -which sum -ls | sort-by size | filter {|s| $s.size > 500MB } | fold -which fold -ls | sort-by size | filter {|s| $s.size > 500MB } | fold -ls | sort-by size | where size > 10MB -ls | sort-by size | where size > 1GB and name ends-with .zip -ls -ls | where size > 1GB -ls | where size > 1GB | sort-by size -ls | where size > 1GB | sort-by size | where name ends-with .zip -ls -`~/Library/Application Support/com.aftershoot.aftershoot/database.sqlite` -schema `~/Library/Application Support/com.aftershoot.aftershoot/database.sqlite` -schema ~/Library/Application Support/com.aftershoot.aftershoot/database.sqlite -schema ~/Library/Application\ Support/com.aftershoot.aftershoot/database.sqlite -schema `~/Library/Application Support/com.aftershoot.aftershoot/database.sqlite` -schema -`~/Library/Application Support/com.aftershoot.aftershoot/database.sqlite` | shchema -open `~/Library/Application Support/com.aftershoot.aftershoot/database.sqlite` | shchema -open `~/Library/Application Support/com.aftershoot.aftershoot/database.sqlite` -open ~/Downloads/UT-lrcat-by-mika.lrcat -open ~/Downloads/UT-lrcat-by-mika.lrcat | AgLibraryFile -open ~/Downloads/UT-lrcat-by-mika.lrcat | where AgLibraryFile -open `~/Library/Application Support/com.aftershoot.aftershoot/database.sqlite` -open `~/Library/Application Support/com.aftershoot.aftershoot/database.sqlite`.presets -open `~/Library/Application Support/com.aftershoot.aftershoot/database.sqlite` .presets -open `~/Library/Application Support/com.aftershoot.aftershoot/database.sqlite` .edits -ls -open `~/Library/Application Support/com.aftershoot.aftershoot/database.sqlite` -query db "a" `~/Library/Application Support/com.aftershoot.aftershoot/database.sqlite` -query `~/Library/Application Support/com.aftershoot.aftershoot/database.sqlite` "sus" -query `~/Library/Application Support/com.aftershoot.aftershoot/database.sqlite` -query -help query -help query db -open `~/Library/Application Support/com.aftershoot.aftershoot/database.sqlite` | query db "select * from edits" -open `~/Library/Application Support/com.aftershoot.aftershoot/database.sqlite` | query db "select * from edits" | sort-by percent -open `~/Library/Application Support/com.aftershoot.aftershoot/database.sqlite` | query db "select * from edits" | sort-by status -help query db -open `~/Library/Application Support/com.aftershoot.aftershoot/database.sqlite` | query db "select * from edits inner join projects.project_codename = project_key" -open `~/Library/Application Support/com.aftershoot.aftershoot/database.sqlite` | query db "select * from edits inner join projects on projects.project_codename = project_key" -open `~/Library/Application Support/com.aftershoot.aftershoot/database.sqlite` | query db "select key,preset_key from edits inner join projects on projects.project_codename = project_key" -open `~/Library/Application Support/com.aftershoot.aftershoot/database.sqlite` | query db "select key,name from edits inner join projects on projects.project_codename = project_key" -open `~/Library/Application Support/com.aftershoot.aftershoot/database.sqlite` | query db "select key,status from edits inner join projects on projects.project_codename = project_key" -open `~/Library/Application Support/com.aftershoot.aftershoot/database.sqlite` | query db "select key, status from edits inner join projects on projects.project_codename = project_key" -open `~/Library/Application Support/com.aftershoot.aftershoot/database.sqlite` | query db "select key from edits inner join projects on projects.project_codename = project_key" -open `~/Library/Application Support/com.aftershoot.aftershoot/database.sqlite` | query db "select key,projects.project_codename from edits inner join projects on projects.project_codename = project_key" -open `~/Library/Application Support/com.aftershoot.aftershoot/database.sqlite` | query db "select projects.* from edits inner join projects on projects.project_codename = project_key" -open `~/Library/Application Support/com.aftershoot.aftershoot/database.sqlite` | query db "select key,projects.project_name from edits inner join projects on projects.project_codename = project_key" -ls -ls | sort-by now - 2wk -ls | where modified < now - 2wk -ls | where modified < time.now -cd ~/.config/ -ls -fd nu -ls -echo $nu.config-path -cd dotfiles -s -cd ~/.local/share/ -ls -cd ~/.local/ -ls -ll -cd ~/.config/ -ll -ls -al -alias ll="ls -al" -alias ll = "ls -al" -alias ll = ls -al -ll -ll | sort-by target -ll | sort-by name -ll -cd dotfiles -ls -cd ~/Projects/dotfiles/ -ls -cd config/ -ls -echo $nu.config-path -fish -ls -cd nushell/ -ls -nu -cd -help source -echo $nu.config-path | dirname -echo $nu -nu -l -echo $nu -nvim -ls -dirname($nu.config-path) -dirname $nu.config-path -dirname $nu.config-path | join a -dirname $nu.config-path | path -dirname $nu.config-path | path join a -dirname $nu.config-path | path join sus -ll -open `~/Library/Application Support/com.aftershoot.aftershoot/database.sqlite` | query db "select key,projects.project_name from edits inner join projects on projects.project_codename = project_key" -open `~/Library/Application Support/com.aftershoot.aftershoot/database.sqlite` | query db "select project_key,key,projects.project_name from edits inner join projects on projects.project_codename = project_key" -nvim sus.txt -nvim sus.json -open ~/Downloads/response_1687441262087.json -open ~/Downloads/response_1687441262087.json | count -open ~/Downloads/response_1687441262087.json | len -open ~/Downloads/response_1687441262087.json | length -open ~/Downloads/response_1687441262087.json -open ~/Downloads/response_1687441262087.json | length -nvim sus.json -open sus.json -nvim sus.json -open sus.json | length -curl -X 'GET' \ - 'http://localhost:43938/editing/edits/filtered?key=0ec34b0d-3577-4d82-ab70-735d66a11403' \ -open 'http://localhost:43938/editing/edits/filtered?key=0ec34b0d-3577-4d82-ab70-735d66a11403' -open 'http://localhost:43938/editing/edits/filtered?key=0ec34b0d-3577-4d82-ab70-735d66a11403' -help req -http get 'http://localhost:43938/editing/edits/filtered?key=0ec34b0d-3577-4d82-ab70-735d66a11403' -http get 'http://localhost:43938/editing/edits/filtered?key=0ec34b0d-3577-4d82-ab70-735d66a11403' -http get 'http://localhost:43938/editing/edits/filtered?key=0ec34b0d-3577-4d82-ab70-735d66a11403' | flatten -http get 'http://localhost:43938/editing/edits/filtered?key=0ec34b0d-3577-4d82-ab70-735d66a11403' | flatten | get files -nvim query.sql -http get 'http://localhost:43938/editing/edits/filtered?key=0ec34b0d-3577-4d82-ab70-735d66a11403' | flatten | get files -http get 'http://localhost:43938/editing/edits/filtered?key=0ec34b0d-3577-4d82-ab70-735d66a11403' | flatten | get files | lenth -http get 'http://localhost:43938/editing/edits/filtered?key=0ec34b0d-3577-4d82-ab70-735d66a11403' | flatten | get files -http get 'http://localhost:43938/editing/edits/filtered?key=0ec34b0d-3577-4d82-ab70-735d66a11403' | flatten | get files | flatten -cd libraw-sys -ls -nvim src/linux.rs -http get 'http://localhost:43938/editing/edits/filtered?key=0ec34b0d-3577-4d82-ab70-735d66a11403' | flatten | get files | flatten | length -http get 'http://localhost:43938/editing/edits/filtered?key=0ec34b0d-3577-4d82-ab70-735d66a11403' | flatten | get files | flatten -http get 'http://localhost:43938/editing/edits/filtered?key=0ec34b0d-3577-4d82-ab70-735d66a11403' | flatten | get files <\n> -http get 'http://localhost:43938/editing/edits/filtered?key=0ec34b0d-3577-4d82-ab70-735d66a11403' -http get 'http://localhost:43938/editing/edits/filtered?key=0ec34b0d-3577-4d82-ab70-735d66a11403' | flatten | get files -http get 'http://localhost:43938/editing/edits/filtered?key=0ec34b0d-3577-4d82-ab70-735d66a11403' | flatten | get files | flatten -http get 'http://localhost:43938/editing/edits/filtered?key=0ec34b0d-3577-4d82-ab70-735d66a11403' | flatten | flatten -http get 'http://localhost:43938/editing/edits/filtered?key=0ec34b0d-3577-4d82-ab70-735d66a11403' | flatten | flatten | length -http get 'http://localhost:43938/editing/edits/filtered?key=0ec34b0d-3577-4d82-ab70-735d66a11403' | flatten | flatten -http get 'http://localhost:43938/editing/edits/filtered?key=0ec34b0d-3577-4d82-ab70-735d66a11403' | flatten | flatten | filter {|x| echo $x} -http get 'http://localhost:43938/editing/edits/filtered?key=0ec34b0d-3577-4d82-ab70-735d66a11403' | flatten | flatten | filter {|x| $x.global_id != ""} -http get 'http://localhost:43938/editing/edits/filtered?key=0ec34b0d-3577-4d82-ab70-735d66a11403' | flatten | flatten | filter {|x| $x.files.global_id != ""} -ls diff --git a/config/tmux/tmux.conf b/config/tmux/tmux.conf index 735194ce..cf2c4b28 100644 --- a/config/tmux/tmux.conf +++ b/config/tmux/tmux.conf @@ -23,6 +23,7 @@ run -b '~/.config/tmux/plugins/tpm/tpm' # if on macos use /opt/homebrew/bin/fish if-shell "[ -f /usr/bin/fish ]" "set -g default-shell '/usr/bin/fish'" if-shell "[ -f /opt/homebrew/bin/fish ]" "set -g default-shell '/opt/homebrew/bin/fish'" +if-shell "[ -f /opt/homebrew/bin/nu ]" "set -g default-shell '/opt/homebrew/bin/nu'" set -g default-terminal 'tmux-256color' set -ga terminal-overrides ',*256col*:Tc'