update
This commit is contained in:
28
.ideavimrc
28
.ideavimrc
@@ -24,14 +24,13 @@ let g:WhichKey_PrefixColor = "#f335b2"
|
|||||||
let g:WhichKey_SortOrder = "by_key_prefix_first"
|
let g:WhichKey_SortOrder = "by_key_prefix_first"
|
||||||
|
|
||||||
" NerdTree
|
" NerdTree
|
||||||
plug 'preservim/nerdtree'
|
Plug 'preservim/nerdtree'
|
||||||
set NerdTree
|
nnoremap <C-n> :NERDTree<CR>
|
||||||
nnoremap <C-n> :NerdTree<CR>
|
|
||||||
|
|
||||||
let g:NerdTreeWinSize = 30
|
let g:NERDTreeWinSize=30
|
||||||
let g:NerdTreeMapPreview = 0
|
let g:NERDTreeMapPreview=0
|
||||||
let g:NerdTreeActivateNode = 'l'
|
let g:NERDTreeMapActivateNode='l'
|
||||||
let g:NERDTreeMapJumpParent = 'h'
|
let g:NERDTreeMapJumpParent='h'
|
||||||
|
|
||||||
let mapleader=' '
|
let mapleader=' '
|
||||||
|
|
||||||
@@ -64,6 +63,7 @@ nnoremap <C-u> <C-u>zz
|
|||||||
map <leader>% <action>(SplitVertically)
|
map <leader>% <action>(SplitVertically)
|
||||||
map <leader>" <action>(SplitHorizontally)
|
map <leader>" <action>(SplitHorizontally)
|
||||||
map <leader>x <action>(CloseContent)
|
map <leader>x <action>(CloseContent)
|
||||||
|
map <leader>wm <action>(MoveEditorToOppositeTabGroup)
|
||||||
|
|
||||||
" Popup Navigation
|
" Popup Navigation
|
||||||
inoremap <C-j> <Action>(PopupMenu-selectNext)
|
inoremap <C-j> <Action>(PopupMenu-selectNext)
|
||||||
@@ -103,9 +103,11 @@ map <leader>ep <action>(ReSharperGotoPrevErrorInSolution)
|
|||||||
|
|
||||||
" Menu
|
" Menu
|
||||||
map <leader>mm <action>(MainMenu)
|
map <leader>mm <action>(MainMenu)
|
||||||
map <leader>my <action>(GotoTypeDeclaraton)
|
map <leader>ma <action>(AnalyzeMenu)
|
||||||
map <leader>mi <action>(GotoImplementation)
|
map <leader>mb <action>(BuildMenu)
|
||||||
map <leader>mu <action>(ShowUsages)
|
map <leader>mc <action>(CodeMenu)
|
||||||
map <leader>mt <action>(GotoTest)
|
map <leader>mf <action>(FindMenuGroup)
|
||||||
map <leader>mf <action>(Back)
|
map <leader>mg <action>(GoToMenu)
|
||||||
map <leader>mb <action>(Forward)
|
map <leader>ms <action>(ScopeViewPopupMenu)
|
||||||
|
map <leader>mt <action>(EditorTabPopupMenu)
|
||||||
|
map <leader>mw <action>(ToolWindowsGroup)
|
||||||
|
|||||||
16
.zshrc
16
.zshrc
@@ -23,6 +23,7 @@ alias pwsh='pwsh -NoLogo'
|
|||||||
alias pbpaste='xclip -selection clipboard -o'
|
alias pbpaste='xclip -selection clipboard -o'
|
||||||
alias ls='eza'
|
alias ls='eza'
|
||||||
alias ll='eza -l'
|
alias ll='eza -l'
|
||||||
|
alias lg='lazygit'
|
||||||
alias tree='eza -T'
|
alias tree='eza -T'
|
||||||
alias cat='bat -P'
|
alias cat='bat -P'
|
||||||
alias network='nmtui'
|
alias network='nmtui'
|
||||||
@@ -33,10 +34,21 @@ alias connectvpn='sudo openvpn ~/Documents/openvpn/openvpn.ovpn'
|
|||||||
|
|
||||||
eval "$(oh-my-posh init zsh --config ~/.config/ohmyposh/config.toml)"
|
eval "$(oh-my-posh init zsh --config ~/.config/ohmyposh/config.toml)"
|
||||||
|
|
||||||
if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
|
if command -v tmux &> /dev/null && [[ "$TERMINAL_EMULATOR" == "JetBrains-JediTerm" ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
|
||||||
exec tmux attach
|
cwd=$(pwd)
|
||||||
|
session_name="goland-$(basename "$cwd" | tr -d '.')"
|
||||||
|
|
||||||
|
if tmux has-session -t $session_name; then
|
||||||
|
tmux attach -t $session_name
|
||||||
|
else
|
||||||
|
tmux new -s $session_name
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
|
||||||
|
# exec tmux attach
|
||||||
|
#fi
|
||||||
|
|
||||||
if [[ -f "/opt/homebrew/bin/brew" ]] then
|
if [[ -f "/opt/homebrew/bin/brew" ]] then
|
||||||
# If you're using macOS, you'll want this enabled
|
# If you're using macOS, you'll want this enabled
|
||||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||||
|
|||||||
Reference in New Issue
Block a user