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
// Place your key bindings in this file to override the defaults | |
[ | |
{ | |
"key": "ctrl+p", | |
"command": "-extension.vim_ctrl+p", | |
"when": "editorTextFocus && vim.active && vim.use<C-p> && !inDebugRepl || vim.active && vim.use<C-p> && !inDebugRepl && vim.mode == 'CommandlineInProgress' || vim.active && vim.use<C-p> && !inDebugRepl && vim.mode == 'SearchInProgressMode'" | |
}, | |
{ | |
"key": "ctrl+b", | |
"command": "-extension.vim_ctrl+b", |
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
// vscode vim settings | |
"vim.vimrc.enable": true, | |
"vim.vimrc.path": "c:\\Users\\toshiba\\.vimrc", | |
"vim.leader": "<Space>", | |
"vim.highlightedyank.color": "rgba(230, 97, 89, 0.7)", | |
"vim.highlightedyank.enable": true, | |
"vim.highlightedyank.textColor": "white", | |
"vim.hlsearch": true, | |
"vim.normalModeKeyBindingsNonRecursive": [ |
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
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. | |
# Initialization code that may require console input (password prompts, [y/n] | |
# confirmations, etc.) must go above this block; everything else may go below. | |
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then | |
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" | |
fi | |
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH |
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
set expandtab | |
set tabstop=4 | |
set softtabstop=4 | |
set shiftwidth=4 | |
set foldmethod=manual | |
set foldcolumn=1 | |
set clipboard+=unnamedplus | |
set signcolumn=number | |
set number | |
set relativenumber |
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
const morgan = require('morgan'); | |
const chalk = require('chalk'); | |
const { REQ_COLORS } = require('../lib/constants'); | |
morgan.token('params', (req, res) => { | |
return JSON.stringify(req.params); | |
}); | |
morgan.token('query', (req, res) => { | |
return JSON.stringify(req.query); |
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
# Open the current directory in the file explorer | |
alias ex='explorer.exe .' | |
# Copy the current directory path to the clipboard | |
alias cpth='pwd | tr -d "\n" | xclip -selection clipboard' | |
# aliases for common win utilities | |
alias explorer='explorer.exe .' | |
alias notepad='notepad.exe' | |
alias edge='msedge.exe' |
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
[alias] | |
ac = !git add -A && git commit -m | |
acp = "!f() { git add -A && git commit -m \"$1\" && git push origin $(git symbolic-ref --short HEAD); }; f" | |
pom = push origin master | |
po = push origin | |
pl = pull origin | |
st = status -sb | |
s = status | |
co = checkout | |
br = branch --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) %(color:green)(%(committerdate:relative)) [%(authorname)]' --sort=-committerdate |