Skip to content

Commit

Permalink
chore: add Timenet GitLab Folder
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinocossar committed Oct 30, 2023
1 parent 1a7a215 commit aaee068
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions oh-my-custom-zsh.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,22 @@ aquest() {
return
}

timenet() {
WORKSPACE_PATH="$HOME/Workspace/Timenet - GitLab CE"
PROJ=$1

if [ ! -d "$WORKSPACE_PATH/$PROJ" ] && [ "$WORKSPACE_PATH/$PROJ" != "" ]; then
echo "'$PROJ' is not a directory project or not exists!"
else
if [ "$PROJ" = "" ]; then
cd "$WORKSPACE_PATH"
else
cd "$WORKSPACE_PATH/$PROJ"
fi
fi
return
}

# Auto completions for go to projects
_works() {
WORKSPACE_PATH="$HOME/Workspace/Beliven - GitLab CE"
Expand Down Expand Up @@ -234,6 +250,13 @@ _aquest() {
}
compdef _aquest aquest

_timenet() {
WORKSPACE_PATH="$HOME/Workspace/Timenet - GitLab CE"
DIRS=(`ls -d "$WORKSPACE_PATH"/*/ | tr -d ' ' | xargs basename | tr '\n' ' '`)
compadd -X "Select a 'Timenet - GitLab CE' project:" $DIRS
}
compdef _timenet timenet

# Benchmark shell load time
timezsh() {
shell=${1-$SHELL}
Expand Down

0 comments on commit aaee068

Please sign in to comment.