Skip to content
Snippets Groups Projects
Commit a26f7723 authored by Sebastian Semmler's avatar Sebastian Semmler
Browse files

added Visual Studio Code Support to zsh

parent fa415346
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,19 @@ for config_file ($ZSH/lib/*.zsh) source $config_file
autoload -U compinit
compinit -i
# Visual Studio Code
function code {
if [[ $# = 0 ]]
then
open -a "Visual Studio Code"
else
local argPath="$1"
[[ $1 = /* ]] && argPath="$1" || argPath="$PWD/${1#./}"
open -a "Visual Studio Code" "$argPath"
fi
}
# Alias
alias ls='ls -a'
alias zshconfig="mate ~/.zshrc"
alias launchpadreset="defaults write com.apple.dock ResetLaunchPad -bool true; killall Dock"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment