Skip to content

Commit

Permalink
sync changes
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusvellone committed Jan 17, 2022
1 parent 34d1355 commit ff0ff6e
Show file tree
Hide file tree
Showing 8 changed files with 54 additions and 6 deletions.
5 changes: 4 additions & 1 deletion fish/path.fish
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
set -U fish_prompt_pwd_dir_length 0

set -gx PATH $PATH $HOME/.local/bin
set -gx PATH $PATH $HOME/.local/bin
set -gx PATH $PATH $HOME/gems/bin

set -gx GEM_HOME $HOME/gems
3 changes: 2 additions & 1 deletion generic/.bash_profile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
if command -v tmux &> /dev/null && [ -z "$TMUX" ]; then
tmux attach -t default || tmux new -s default
fi
fi
source "$HOME/.cargo/env"
2 changes: 2 additions & 0 deletions run/vscode.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
echo "Running vscode dotfile configuration"

sudo apt install fonts-firacode

mkdir -p $HOME/.config/Code/User
ln -fs $PWD/vscode/vscode.json $HOME/.config/Code/User/settings.json
ln -fs $PWD/vscode/keybindings.json $HOME/.config/Code/User/keybindings.json
Expand Down
3 changes: 2 additions & 1 deletion run/zsh.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
echo "Running zsh dotfile configuration"

sudo apt install gawk
sudo apt install gawk xclip
sudo snap install bw

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Expand Down
21 changes: 20 additions & 1 deletion vscode/keybindings.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,24 @@
{
"key": "ctrl+k ctrl+w",
"command": "-workbench.action.closeAllEditors"
},
{
"key": "ctrl+\\",
"command": "-workbench.action.splitEditor"
},
{
"key": "ctrl+\\",
"command": "github.copilot.generate",
"when": "editorTextFocus"
},
{
"key": "ctrl+enter",
"command": "-github.copilot.generate",
"when": "editorTextFocus"
},
{
"key": "ctrl+enter",
"command": "-github.copilot.generate",
"when": "editorTextFocus && github.copilot.activated"
}
]
]
9 changes: 9 additions & 0 deletions vscode/snippets/custom.json.code-snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"Markdown Spoiler": {
"prefix": "spoiler",
"body": [
"<details>\n\t<summary>\n\t\t$1\n\t</summary>\n\n$2\n</details>",
],
"description": "Create a markdown spoiler",
}
}
2 changes: 1 addition & 1 deletion vscode/snippets/javascript.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
"console.log(JSON.stringify($1, null, 2))",
],
"description": "Log object to console",
},
}
}
15 changes: 14 additions & 1 deletion zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,21 @@ alias ll='ls -lh'

alias dclean='docker ps -aq | xargs docker stop; docker ps -aq | xargs docker rm'
alias ip='curl -4 ifconfig.io'
alias unlock='echo "export BW_SESSION=$(bw unlock --raw)" >> ~/.zprofile && source ~/.zprofile'

alias windows='sudo grub-reboot "$(grep -i windows /boot/grub/grub.cfg | cut -d "\"" -f 2)"'
2fa() {
bw get totp $1 | xclip -selection clipboard && echo "Copied $1 password to clipboard :)"

notify-send '2FA token copied to clipboard' $1
}

password() {
bw get password $1 | xclip -selection clipboard && echo "Copied $1 password to clipboard :)"

notify-send 'Password copied to clipboard' $1
}

alias windows='sudo grub-reboot "$(grep -i windows /boot/grub/grub.cfg | cut -d "\"" -f 2)" && sudo reboot now'
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh

Expand Down

0 comments on commit ff0ff6e

Please sign in to comment.