Last active
February 4, 2026 15:16
-
-
Save FdelMazo/868b261c064e8c0c0e7862f968c4a389 to your computer and use it in GitHub Desktop.
Append me to .zshrc (and others)
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
| [user] | |
| email = fdelmazo@fi.uba.ar | |
| name = Federico del Mazo | |
| signingKey = /home/delmazo/.ssh/id_rsa.pub | |
| [init] | |
| defaultBranch = main | |
| [core] | |
| editor = vim | |
| [gpg] | |
| format = ssh | |
| [commit] | |
| gpgsign = true | |
| [pull] | |
| rebase = true | |
| [merge] | |
| conflictstyle = zdiff3 | |
| [rebase] | |
| autosquash = true | |
| [push] | |
| default = current | |
| [branch] | |
| sort = -committerdate | |
| [diff] | |
| algorithm = histogram | |
| colormoved = default | |
| colormovedws = allow-indentation-change | |
| [alias] | |
| pr = "!f() { git fetch origin pull/$1/head:pr-$1; git checkout pr-$1; }; f" | |
| # git clone https://github.com/keis/git-fixup.git && cd git-fixup && sudo make install && cd .. && rm -rf git-fixup | |
| [fixup] | |
| commit = true | |
| rebase = true | |
| menu = fzf --height '60%' \ | |
| --bind 'tab:toggle-preview' \ | |
| --preview 'git show --color {+1}' \ | |
| --preview-window=up:80% \ | |
| --prompt 'Select commit: ' |
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
| # sudo apt install tig xclip | |
| # bind the `c` key on tig to automatically copy the selected commit sha to the clipboard | |
| bind generic c @sh -c "echo -n %(commit) | cut -c -7 | xclip -r -selection c" | |
| # bind the backspace to be the opposite of enter on diff view (enter -> scroll down / backspace -> scroll up) | |
| bind diff <BackSpace> scroll-line-up | |
| # wrap long lines on diff view | |
| set wrap-lines = yes | |
| # remove tz from time column | |
| set main-view-date = custom | |
| set main-view-date-format = "%Y-%m-%d %H:%M:%S" |
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
| # sudo apt install fzf lolcat | |
| # pip install obliquestrategies --break-system-packages | |
| # zsh plugins | |
| # git clone https://github.com/Aloxaf/fzf-tab ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/fzf-tab | |
| # git clone https://gist.github.com/475ee7768efc03727f21.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/git-auto-status | |
| # git clone https://github.com/agkozak/zsh-z ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-z | |
| # git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions | |
| # git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting | |
| # "open in vscode" | |
| # wget https://raw.githubusercontent.com/mhsattarian/nemo-open-in-vscode/master/vscode.nemo_action -O ~/.local/share/nemo/actions/vscode.nemo_action | |
| plugins=( | |
| fzf-tab | |
| git | |
| git-auto-fetch | |
| last-working-dir | |
| git-auto-status | |
| sudo | |
| zsh-syntax-highlighting | |
| zsh-autosuggestions | |
| zsh-z | |
| ) | |
| alias xx='xdg-open ' | |
| alias vim='vim "+set number"' | |
| alias python='python3 ' | |
| alias pp='python ' | |
| obliquestrategies | lolcat | |
| # Asegurarse de que esto este post source oh-my-zsh.sh | |
| source /usr/share/doc/fzf/examples/key-bindings.zsh | |
| # Highlight commit messages up to the first 50 characters | |
| ZSH_HIGHLIGHT_REGEXP+=("(gcmsg|git commit -m) \"[^\"]{0,50}(\"|)" "fg=cyan") | |
| ZSH_HIGHLIGHT_REGEXP+=("(gcmsg|git commit -m) '[^']{0,50}('|)" "fg=cyan") | |
| typeset -A ZSH_HIGHLIGHT_PATTERNS | |
| ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets regexp) | |
| # https://askubuntu.com/questions/643142/is-it-possible-to-enter-password-for-sudo-only-once-and-configure-it-to-not-req | |
| # https://askubuntu.com/questions/1028439/ssh-config-visual-host-key-yes-no-option |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment