diff --git a/.config/tmuxinator/casino.yml b/.config/tmuxinator/casino.yml deleted file mode 100644 index 7042b84..0000000 --- a/.config/tmuxinator/casino.yml +++ /dev/null @@ -1,56 +0,0 @@ -# /home/csimonis/.config/tmuxinator/casino.yml - -name: casino -root: ~/projects/school/casino - -# Optional tmux socket -# socket_name: foo - -# Note that the pre and post options have been deprecated and will be replaced by -# project hooks. - -# Project hooks - -# Runs on project start, always -on_project_start: docker compose up -d - -# Run on project start, the first time -# on_project_first_start: command - -# Run on project start, after the first time -# on_project_restart: command - -# Run on project exit ( detaching from tmux session ) -# on_project_exit: command - -# Run on project stop -on_project_stop: docker compose down - -# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions. -# pre_window: rbenv shell 2.0.0-p247 - -# Pass command line options to tmux. Useful for specifying a different tmux.conf. -# tmux_options: -f ~/.tmux.mac.conf - -# Change the command to call tmux. This can be used by derivatives/wrappers like byobu. -# tmux_command: byobu - -# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used. -# startup_window: editor - -# Specifies (by index) which pane of the specified window will be selected on project startup. If not set, the first pane is used. -# startup_pane: 1 - -# Controls whether the tmux session should be attached to automatically. Defaults to true. -# attach: false - -windows: - - casino: - layout: main-vertical - # Synchronize all panes of this window, can be enabled before or after the pane commands run. - # 'before' represents legacy functionality and will be deprecated in a future release, in favour of 'after' - # synchronize: after - panes: - - clear - - cd frontend && nvm use 22.12 && exec bun run start - - cd backend && exec watchexec -r -e java ./gradlew :bootRun \ No newline at end of file diff --git a/.zshrc b/.zshrc index 0b4d81e..b26c353 100644 --- a/.zshrc +++ b/.zshrc @@ -149,3 +149,13 @@ export NVM_DIR="$HOME/.nvm" . "$HOME/.atuin/bin/env" eval "$(atuin init zsh)" + +#SESSION_NAME="main +# +#if [ -t 1 ] && [ -n "$PS1" ] && [ -z "$TMUX" ]; then +# if tmux has-session -t "$SESSION_NAME" 2>/dev/null; then +# tmux attach-session -t "$SESSION_NAME" +# else +# tmux new-session -s "$SESSION_NAME" -c "$HOME" +# fi +#fi diff --git a/alias.d/git.sh b/alias.d/git.sh index 04f695c..7d40cbc 100755 --- a/alias.d/git.sh +++ b/alias.d/git.sh @@ -16,3 +16,4 @@ alias gst='git stash' alias gstd='git stash drop' alias gsta='git stash apply' alias gstp='git stash pop' +alias gcl='git clean -d'