This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| live_config_reload = true | |
| import = [ | |
| "/home/agagorik/.config/alacritty/catppuccin/catppuccin-mocha.toml", | |
| ] | |
| # shell = "/usr/bin/zsh" | |
| [env] | |
| TERM = "xterm-256color" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # alias tldr="~/.gists/bin/tldr" | |
| TLDR_COMMAND=/home/linuxbrew/.linuxbrew/bin/tldr | |
| if [ $# -eq 0 ]; then | |
| $TLDR_COMMAND --help | |
| exit 0 | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| tr ':' '\n' <<< "$PATH" | fzf --no-sort | xclip -i -sel clip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Store the STDOUT of fzf in a variable | |
| selection=$(find . -type d | fzf --multi --height=80% --border=sharp \ | |
| --preview='tree -C {}' --preview-window='45%,border-sharp' \ | |
| --prompt='Dirs > ' \ | |
| --bind='del:execute(rm -ri {+})' \ | |
| --bind='ctrl-p:toggle-preview' \ | |
| --bind='ctrl-d:change-prompt(Dirs > )' \ | |
| --bind='ctrl-d:+reload(find . -type d)' \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| old_url=$(git remote get-url origin) | |
| new_url=${old_url//https:\/\//git@} | |
| new_url=${new_url//.com\//.com:} | |
| echo "old url: $old_url" | |
| echo "new url: $new_url" | |
| if [[ "${old_url}" == "${new_url}" ]] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| INP=main.tex | |
| OUT=main.docx | |
| REF=reference.docx | |
| if [[ $# -ge 1 ]]; then | |
| INP="${1%.*}.tex" | |
| OUT="${1%.*}.docx" | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| function zcon() { | |
| time_0=`date -r ~/.zshrc` | |
| nvim ~/.zshrc | |
| time_1=`date -r ~/.zshrc` | |
| echo $time_0 | |
| echo $time_1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CPPFLAGS="-I$(brew --prefix [email protected])/include" LDFLAGS="-L$(brew --prefix [email protected])/lib" pyenv install -v 3.10.13 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| EXTRAS | |
| path: Get path of local clone | |
| link: Register a gist locally | |
| sync: Sync all registered gists | |
| debug: Debug script configuration | |
| status: Get status of registered gists | |
| select: Select a gist using fuzzy finder | |
| attach: Attach a gist to the local registry |