Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 35 additions & 10 deletions zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@ fi

# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export PATH="/Applications/Xcode.app/Contents/Developer/usr/bin:$PATH"

# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"


setopt auto_cd
cdpath=($HOME $HOME/repos $HOME/repos/ICS)

# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
Expand Down Expand Up @@ -77,7 +82,7 @@ ZSH_THEME="powerlevel10k/powerlevel10k"
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
plugins=(git zsh-autosuggestions zsh-syntax-highlighting vi-mode)

source $ZSH/oh-my-zsh.sh

Expand Down Expand Up @@ -106,13 +111,14 @@ source $ZSH/oh-my-zsh.sh
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
alias smxg="cd ~/repos/ics/InContext.SMXGo"
alias smxgu="cd ~/repos/ics/InContext.SMXGo/unityprojects/smxgo_unityproject"
#
alias smxg="cd ~/Repos/ICS/InContext.SMXGo"
alias smxgu="cd ~/Repos/ICS/InContext.SMXGo/unityprojects/smxgo_unityproject"
alias lg="lazygit"
alias aliase="nvim ~/.zshrc"
alias sp="nvim ~/Documents/Notes/ScratchPad.txt"
alias vim=nvim
alias e.="nautilus ."
alias e.="open ."
alias src="source ~/.zshrc"
alias ics="cd ~/Repos/ICS"
alias vs="open *.sln"
Expand All @@ -132,6 +138,7 @@ alias ch="git checkout $*"
alias mm="git checkout master ; git pull ; git checkout - ; git merge master"
alias wmm="git checkout main ; git pull ; git checkout - ; git merge main"
alias nuke="git reset --hard ; git clean -fd"
alias inst="adb install unityprojects/smxgo_unityproject/unitybuild.apk"



Expand All @@ -154,17 +161,35 @@ function pr() {
pr_url="https://incontextsolutions.visualstudio.com/ICS/_git/$repo/pullrequest/$pr_id"

# Open the PR in the browser
xdg-open $pr_url
open $pr_url
}

# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
export PATH=$PATH:~/Android/Sdk/platform-tools
export PATH=$PATH:~/Library/Android/sdk/platform-tools


# Change cursor shape for vi-mode
function zle-keymap-select {
if [[ ${KEYMAP} == vicmd ]]; then
echo -ne "\e[2 q"
elif [[ ${KEYMAP} == main ]]; then
echo -ne "\e[6 q"
fi
zle reset-prompt
zle -R
}

setopt auto_cd
cdpath=($HOME $HOME/repos $HOME/repos/ICS)


zle -N zle-keymap-select
zle-line-init() {
zle -K viins # initiate `vi insert` as keymap (can be removed if `bindkey -V` has been set elsewhere)
echo -ne "\e[6 q"
}
zle -N zle-line-init
KEYTIMEOUT=1
#end change cursor shape for vi-mode

export PATH=$PATH:~/Android/Sdk/platform-tools
# accept autosuggestions
bindkey "^[[Z" autosuggest-accept
# End accept autosuggestions