From 4871138e0a5c7e7855407b406cdb5ab97c51edd9 Mon Sep 17 00:00:00 2001 From: Noah Masur Date: Tue, 10 Nov 2020 18:14:36 -0500 Subject: [PATCH] latest updates and additions --- bin/biggest-files | 3 +++ fish.configlink/functions/aliases.fish | 3 +-- fish.configlink/functions/notes.fish | 4 ++-- homebrew/Brewfile | 3 ++- homebrew/Caskfile | 3 +++ scripts/bootstrap | 2 +- starship/starship.toml.configlink | 20 ++++++++++++-------- tmux/gitmux.conf.symlink | 2 +- 8 files changed, 25 insertions(+), 15 deletions(-) create mode 100755 bin/biggest-files diff --git a/bin/biggest-files b/bin/biggest-files new file mode 100755 index 0000000..16d10aa --- /dev/null +++ b/bin/biggest-files @@ -0,0 +1,3 @@ +#!/usr/local/bin/nu + +ls **/* | where type == File | sort-by size | reverse | keep 10 diff --git a/fish.configlink/functions/aliases.fish b/fish.configlink/functions/aliases.fish index 34d5cff..9514e4a 100644 --- a/fish.configlink/functions/aliases.fish +++ b/fish.configlink/functions/aliases.fish @@ -16,8 +16,7 @@ function aliases --description 'All aliases' abbr -a gc 'git commit -m' abbr -a gu 'git pull' abbr -a gp 'git push' - abbr -a gh 'hub' - abbr -a ghb 'hub browse' + abbr -a ghb 'gh repo view -w' # Vim abbr -a v 'vim' diff --git a/fish.configlink/functions/notes.fish b/fish.configlink/functions/notes.fish index 8ea59b2..3c8fa67 100644 --- a/fish.configlink/functions/notes.fish +++ b/fish.configlink/functions/notes.fish @@ -11,7 +11,7 @@ function notes --description "Notes functions" set yesterday (date -jv "-1d" +"%Y-%m-%d_%a") set tomorrow (date -jv "+1d" +"%Y-%m-%d_%a") set weather (curl -s "https://wttr.in/?format=1") - printf "[[$yesterday|Previous]] - [[calendar|Index]] - [[$tomorrow|Next]]\n\n---\n\n$weather\n\n# Tasks\n\n\n# Log\n\n\n# Communication\n\n---\n\n# Meetings\n\n" > $today_journal + printf "[[$yesterday|Previous]] - [[calendar|Index]] - [[$tomorrow|Next]]\n\n---\n\n$weather\n\n# Tasks\n\n![[🎯 Active Tasks]]\n# Log\n\n\n# Communication\n\n---\n\n# Meetings\n\n" > $today_journal echo "New journal added." end end @@ -26,7 +26,7 @@ function notes --description "Notes functions" set yesterday (date -jv "-1d" +"%Y-%m-%d_%a") set tomorrow (date -jv "+1d" +"%Y-%m-%d_%a") set weather (curl -s "https://wttr.in/?format=1") - printf "[[$yesterday|Previous]] - [[calendar|Index]] - [[$tomorrow|Next]]\n\n---\n\n$weather\n\n# Tasks\n\n\n# Log\n\n\n# Communication\n\n---\n\n# Meetings\n\n" > $today_journal + printf "[[$yesterday|Previous]] - [[calendar|Index]] - [[$tomorrow|Next]]\n\n---\n\n$weather\n\n# Tasks\n\n![[🎯 Active Tasks]]\n# Log\n\n\n# Communication\n\n---\n\n# Meetings\n\n" > $today_journal echo "New journal added." vim $today_journal end diff --git a/homebrew/Brewfile b/homebrew/Brewfile index 1f43fff..33facdb 100644 --- a/homebrew/Brewfile +++ b/homebrew/Brewfile @@ -33,7 +33,7 @@ brew "gpg" # Encryption brew "qrencode" # Make a QR code brew "youtube-dl" # Download YouTube videos brew "googler" # Search Google -brew "hub" # GitHub commands +brew "gh" # GitHub commands # Personal tap "nmasur/repo" # My repo @@ -46,6 +46,7 @@ brew "cjbassi/ytop/ytop" brew "haskell-stack" # Latest version of Haskell brew "noti" # Create system notifications brew "kakoune" # Modal editor +brew "b2-tools" # BackBlaze B2 storage # Not Installed # pulumi diff --git a/homebrew/Caskfile b/homebrew/Caskfile index 686130a..bce8c69 100644 --- a/homebrew/Caskfile +++ b/homebrew/Caskfile @@ -36,6 +36,9 @@ cask "steam" # Games cask "vlc" # Video player cask "calibre" # Ebook manager +cask "jira-client" +cask "wkhtmltopdf" + # Don't bother # cask "skype" # cask "dash" diff --git a/scripts/bootstrap b/scripts/bootstrap index 2b9caca..d0b3e12 100755 --- a/scripts/bootstrap +++ b/scripts/bootstrap @@ -104,7 +104,7 @@ install_gitmux() { then printf "gitmux ✕\n\n" printf "\ninstalling gitmux..." - /bin/bash -c "$(curl -L -o gitmux.tar.gz https://github.com/arl/gitmux/releases/download/v0.6.0/gitmux_0.6.0_macOS_amd64.tar.gz)" + /bin/bash -c "$(curl -L -o gitmux.tar.gz https://github.com/arl/gitmux/releases/download/v0.7.4/gitmux_0.7.4_macOS_amd64.tar.gz)" tar -xzf gitmux.tar.gz gitmux mkdir -p ~/.local/bin mv gitmux ~/.local/bin/ diff --git a/starship/starship.toml.configlink b/starship/starship.toml.configlink index c54bcf2..9dc15ce 100644 --- a/starship/starship.toml.configlink +++ b/starship/starship.toml.configlink @@ -1,10 +1,11 @@ # Don't print a new line at the start of the prompt add_newline = false -prompt_order = ["directory", "custom.virtualenv", "character"] +format = """\ + $directory\ + $character\ + """ -# Replace the "❯" symbol in the prompt with "➜" -[character] # The name of the module we are configuring is "character" -# symbol = "➜" # The "symbol" segment is being set to "➜" +[character] symbol = "❯" [directory] @@ -16,14 +17,17 @@ truncation_length = 1 truncation_symbol = "" [git_status] -prefix = "" -suffix = "" +format = '([\[$all_status$ahead_behind\]]($style) )' +# prefix = "" +# suffix = "" [python] symbol = "" +format = '[\($virtualenv\)]($style)' [custom.virtualenv] command = "echo (basename $VIRTUAL_ENV)" # shows output of command -prefix = "(" -suffix = ") " +format = "[$output]($style) " when = "true" +# prefix = "(" +# suffix = ") " diff --git a/tmux/gitmux.conf.symlink b/tmux/gitmux.conf.symlink index 3a583ec..2c9b126 100644 --- a/tmux/gitmux.conf.symlink +++ b/tmux/gitmux.conf.symlink @@ -12,7 +12,7 @@ tmux: clean: '' styles: state: '#[fg=red,bold]' - branch: '#[fg=bold]' + branch: '#[fg=colour241,bold]' remote: '#[fg=colour239]' staged: '#[fg=colour241,bold]' conflict: '#[fg=red,bold]'