Skip to content

Commit

Permalink
macos updates / keys for vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
akrisiun committed Nov 14, 2019
1 parent bdf44b2 commit 7fcc91b
Show file tree
Hide file tree
Showing 4 changed files with 197 additions and 23 deletions.
30 changes: 7 additions & 23 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ export KUBECONFIG=~/.kube/config

# v10.16.3
export NVM_DIR="$HOME/.nvm"
[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm
[ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion

#[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm
#[ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion

# bash:
# export PS1='$(whoami)@$(hostname):$(pwd) $ '
Expand All @@ -24,7 +23,6 @@ export PROMPT="%F{magenta}%n%f@%F{yellow}${${(%):-%m}#zoltan-}%f %F{yellow}%1~ %
export FrameworkPathOverride="/usr/local/lib/mono/4.5"
# $env:FrameworkPathOverride="/usr/local/lib/mono/4.5"
# silver.yml
# aikube.yml

# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="agnoster"
Expand All @@ -48,20 +46,7 @@ setopt RM_STAR_SILENT

# set -o RM_STAR_SILENT
# setopt

# Uncomment the following line if pasting URLs and other text is messed up.
# DISABLE_MAGIC_FUNCTIONS=true
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# or set a custom format using the strftime function format specifications,
Expand All @@ -80,21 +65,20 @@ source $ZSH/oh-my-zsh.sh
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"

# User configuration
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
export MANPATH="/usr/local/man:$MANPATH"

# You may need to manually set your language environment
export LANG=en_US.UTF-8
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
export ARCHFLAGS="-arch x86_64"

# Set personal aliases, overriding those provided by oh-my-zsh libs,
# For a full list of active aliases, run `alias`.
# alias ohmyzsh="mate ~/.oh-my-zsh"

export PATH="/usr/local/opt/llvm/bin:$PATH"

export LC_NUMERIC="en_LT"
export LC_TIME="en_LT"
export LC_COLLATE="en_LT"
export LC_MONETARY="en_LT"
export LC_MESSAGES="en_LT"

184 changes: 184 additions & 0 deletions User/keybindings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
// Place your key bindings in this file to override the defaults
// Place your key bindings in this file to override the defaultsauto[]
// ~/Library/Application Support/code-oss-dev/User/keybindings.json
// cp ~/Library/Application\ Support/code-oss-dev/User/keybindings.json ~/bin/User
[
{
"key": "ctrl+c",
"command": "editor.action.clipboardCopyAction",
"when": "editorTextFocus"
},
{
"key": "ctrl+c",
"command": "-editor.action.clipboardCopyAction",
"when": "editorTextFocus"
},
{
"key": "ctrl+c",
"command": "editor.action.clipboardCopyAction",
"when": "textInputFocus"
},
{
"key": "ctrl+c",
"command": "-editor.action.clipboardCopyAction",
"when": "textInputFocus"
},
{
"key": "ctrl+delete",
"command": "editor.action.clipboardCutAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+x",
"command": "-editor.action.clipboardCutAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+x",
"command": "editor.action.clipboardCutAction",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+x",
"command": "-editor.action.clipboardCutAction",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+delete",
"command": "-editor.action.clipboardCutAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+s",
"command": "workbench.action.files.saveAll"
},
{
"key": "ctrl+s",
"command": "-workbench.action.files.saveAll"
},
{
"key": "ctrl+u",
"command": "cursorUndo",
"when": "textInputFocus"
},
{
"key": "ctrl+u",
"command": "-cursorUndo",
"when": "textInputFocus"
},
{
"key": "ctrl+f",
"command": "actions.find"
},
{
"key": "cmd+f",
"command": "-actions.find"
},
{
"key": "ctrl+g",
"command": "editor.action.nextMatchFindAction",
"when": "editorFocus"
},
{
"key": "cmd+g",
"command": "-editor.action.nextMatchFindAction",
"when": "editorFocus"
},
{
"key": "ctrl+f3",
"command": "editor.action.nextSelectionMatchFindAction",
"when": "editorFocus"
},
{
"key": "cmd+f3",
"command": "-editor.action.nextSelectionMatchFindAction",
"when": "editorFocus"
},
{
"key": "ctrl+e",
"command": "actions.findWithSelection"
},
{
"key": "cmd+e",
"command": "-actions.findWithSelection"
},
{
"key": "ctrl+h",
"command": "editor.action.startFindReplaceAction"
},
{
"key": "alt+cmd+f",
"command": "-editor.action.startFindReplaceAction"
},
{
"key": "ctrl+shift+f",
"command": "workbench.action.findInFiles"
},
{
"key": "shift+cmd+f",
"command": "-workbench.action.findInFiles"
},
{
"key": "ctrl+g",
"command": "workbench.action.terminal.findNext",
"when": "terminalFocus"
},
{
"key": "cmd+g",
"command": "-workbench.action.terminal.findNext",
"when": "terminalFocus"
},
{
"key": "ctrl+g",
"command": "workbench.action.terminal.findNext",
"when": "terminalFindWidgetFocused"
},
{
"key": "cmd+g",
"command": "-workbench.action.terminal.findNext",
"when": "terminalFindWidgetFocused"
},
{
"key": "cmd+x",
"command": "-editor.action.clipboardCutAction",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+x",
"command": "execCut"
},
{
"key": "cmd+x",
"command": "-execCut"
},
{
"key": "ctrl+x",
"command": "filesExplorer.cut",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus"
},
{
"key": "cmd+x",
"command": "-filesExplorer.cut",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus"
},
{
"key": "ctrl+up",
"command": "cursorTop",
"when": "textInputFocus"
},
{
"key": "cmd+up",
"command": "-cursorTop",
"when": "textInputFocus"
},
{
"key": "ctrl+x",
"command": "editor.action.webvieweditor.cut",
"when": "!editorFocus && !inputFocus && activeEditor == 'WebviewEditor'"
},
{
"key": "cmd+x",
"command": "-editor.action.webvieweditor.cut",
"when": "!editorFocus && !inputFocus && activeEditor == 'WebviewEditor'"
}
]
3 changes: 3 additions & 0 deletions docker-ps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/zsh

docker ps -a --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}" | grep -v k8s | awk {'printf("%-15s %s %3s %s %-32s %-20s %s %s\n",$1,$2,$3,$3,$4,$5,$6,$7,$8);'}
3 changes: 3 additions & 0 deletions service-list.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
launchctl list | grep -v apple

brew services list

0 comments on commit 7fcc91b

Please sign in to comment.