mirror of
https://github.com/GRFreire/dotfiles.git
synced 2026-01-10 04:19:38 +00:00
improve terminal integration with code
This commit is contained in:
parent
f8a3e3bb0b
commit
8586ea4336
@ -62,6 +62,6 @@
|
|||||||
"editor.wordBasedSuggestions": false,
|
"editor.wordBasedSuggestions": false,
|
||||||
},
|
},
|
||||||
"terminal.integrated.env.linux": {
|
"terminal.integrated.env.linux": {
|
||||||
"INTEG_EMU": "vscode"
|
"EMULATOR": "code"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -11,7 +11,7 @@
|
|||||||
signingkey = 1D0FA4387C5873294D5863980F9FE41723A8A297
|
signingkey = 1D0FA4387C5873294D5863980F9FE41723A8A297
|
||||||
|
|
||||||
[core]
|
[core]
|
||||||
editor = nvim
|
editor = $EDITOR
|
||||||
|
|
||||||
[alias]
|
[alias]
|
||||||
st = status -sb
|
st = status -sb
|
||||||
|
|||||||
8
.zshrc
8
.zshrc
@ -42,7 +42,7 @@ alias pacs="pacman -Slq | fzf --multi --preview 'pacman -Si {1}' | xargs -ro sud
|
|||||||
alias apacs="paru -Slq | fzf --multi --preview 'paru -Si {1}' | xargs -ro paru -S"
|
alias apacs="paru -Slq | fzf --multi --preview 'paru -Si {1}' | xargs -ro paru -S"
|
||||||
|
|
||||||
# Config/scripts Edit
|
# Config/scripts Edit
|
||||||
alias ce="echo \"\$(/bin/ls \$HOME/.scripts/bin | sed \"s|^|\$(realpath \$HOME/.scripts/bin/ --relative-to=.)/|\")\n\$((cd \$HOME && config ls-tree -r master --name-only \$HOME) | sed \"s|^|\$(realpath \$HOME --relative-to=.)/|\" | sed 's|^\./||')\" | fzf --info=inline --prompt='Select a file: ' --preview='bat --paging=never --style=plain --color=always {}' | xargs -r \$EDITOR"
|
alias ce="echo \"\$(/bin/ls \$HOME/.scripts/bin | sed \"s|^|\$(realpath \$HOME/.scripts/bin/ --relative-to=.)/|\")\n\$((cd \$HOME && config ls-tree -r master --name-only \$HOME) | sed \"s|^|\$(realpath \$HOME --relative-to=.)/|\" | sed 's|^\./||')\" | fzf --info=inline --prompt='Select a file: ' --preview='bat --paging=never --style=plain --color=always {}' | xargs -r \$(echo \$EDITOR)"
|
||||||
bindkey -s '^[^E' 'ce\n'
|
bindkey -s '^[^E' 'ce\n'
|
||||||
|
|
||||||
# Alias for python3
|
# Alias for python3
|
||||||
@ -79,6 +79,8 @@ source $HOME/.fast-nvm.sh
|
|||||||
source $HOME/.nvm/bash_completion
|
source $HOME/.nvm/bash_completion
|
||||||
|
|
||||||
# Check if is integrated terminal emulator
|
# Check if is integrated terminal emulator
|
||||||
if [ -z "$INTEG_EMU" ]; then
|
if [ "$EMULATOR" = "code" ]; then
|
||||||
colorscript random;
|
export EDITOR="code --wait"
|
||||||
|
else
|
||||||
|
colorscript random
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user