Last active
January 21, 2025 05:58
-
-
Save suriyaJaboon/44ba08df3fee0196c152185c1aa5832b to your computer and use it in GitHub Desktop.
Develop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #set-option -g mouse-select-pane on | |
| #set-option -g mouse-select-window on | |
| #set-window-option -g mode-mouse on | |
| set -g default-terminal "screen-256color" | |
| set -g mouse on | |
| # enable activity alerts | |
| setw -g monitor-activity on | |
| set -g visual-activity on | |
| bind-key -r - resize-pane -D 5 | |
| bind-key -r + resize-pane -U 5 | |
| bind-key -r < resize-pane -L 5 | |
| bind-key -r > resize-pane -R 5 | |
| bind-key -T copy-mode MouseDragEnd1Pane send -X copy-pipe-and-cancel "pbcopy" | |
| # copy to pbcopy | |
| set -g mode-keys vi | |
| #bind-key -Tcopy-mode-vi 'v' send -X begin-selection | |
| #bind-key -Tcopy-mode-vi 'y' send -X copy-pipe-and-cancel "pbcopy" | |
| bind -T copy-mode-vi v send -X begin-selection | |
| bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy" | |
| bind P paste-buffer | |
| bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # PKG_CONFIG_PATH | |
| export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/pkgconfig/ | |
| #Flutter | |
| export FLUTTER=$HOME/flutter | |
| #Android | |
| export ANDROID_HOME=$HOME/Library/Android/sdk | |
| #Kafka | |
| export KAFKA=/usr/local/opt/kafka | |
| #Redis | |
| export REDIS=/usr/local/opt/redis | |
| #Rust | |
| export RUSTUP_HOME=$HOME/.rustup | |
| export CARGO_HOME=$HOME/.cargo | |
| # Golang | |
| export GOPATH=$HOME/go | |
| export GOBIN=$GOPATH/bin | |
| #export GOROOT=/usr/local/opt/go/libexec | |
| #export GOROOT="$HOME/go/go1.19.4" | |
| #export GOROOT="$HOME/go/go1.19.5" | |
| #export GOROOT="$HOME/go/go1.20" | |
| #export GOROOT="$HOME/go/go1.20.4" | |
| #export GOROOT="$HOME/go/go1.22" | |
| #export GOROOT="$HOME/go/go1.22.2" | |
| #export GOROOT="$HOME/go/go1.22.5" | |
| #export GOROOT="$HOME/go/go1.23" | |
| export GOROOT="$HOME/go/go1.23.4" | |
| export NODE_BINARY=node | |
| export GO111MODULE=on | |
| export PATH=$PATH:$GOROOT/bin:$GOPATH/bin:$GOBIN/bin:$FLUTTER/bin:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$KAFKA/bin:$REDIS/bin:$CARGO_HOME/bin | |
| # NVM | |
| export NVM_DIR="$HOME/.nvm" | |
| [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
| [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
| alias g="go build -v -ldflags '-w -s' -gcflags -trimpath=$(PWD) $1" | |
| alias gl="GOOS=linux GOARCH=amd64 go build -v -ldflags '-w -s' -gcflags -trimpath=$(PWD) $1" | |
| alias gm="GOOS=darwin GOARCH=amd64 go build -v -ldflags '-w -s' -gcflags -trimpath=$(PWD) $1" | |
| alias gw="GOOS=windows GOARCH=amd64 go build -v -a -installsuffix cgo -ldflags '-w -s' -gcflags -trimpath=$(PWD) $1" | |
| alias gmc="go clean -modcache" | |
| alias t="terraform" | |
| alias k="kubectl" | |
| alias c="clear" | |
| alias h="helm" | |
| alias glg="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
| alias gs="git status" | |
| alias ga="git add --all" | |
| alias gp="git push" | |
| alias gpo="git push origin" | |
| alias dk="docker" | |
| alias dki="docker images" | |
| alias dkc="docker-compose" | |
| alias dkv="docker volume ls" | |
| alias dkn="docker network ls" | |
| alias git-undo="git reset --soft HEAD^" | |
| alias pm="podman" | |
| # If you come from bash you might have to change your $PATH. | |
| # export PATH=$HOME/bin:/usr/local/bin:$PATH | |
| # Path to your oh-my-zsh installation. | |
| wWHOAMI=$(whoami) | |
| export ZSH="/Users/$wWHOAMI/.oh-my-zsh" | |
| # 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 | |
| # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
| #ZSH_THEME="robbyrussell" | |
| ZSH_THEME="gianu" | |
| # Set list of themes to pick from when loading at random | |
| # Setting this variable when ZSH_THEME=random will cause zsh to load | |
| # a theme from this variable instead of looking in ~/.oh-my-zsh/themes/ | |
| # If set to an empty array, this variable will have no effect. | |
| # ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) | |
| # Uncomment the following line to use case-sensitive completion. | |
| # CASE_SENSITIVE="true" | |
| # Uncomment the following line to use hyphen-insensitive completion. | |
| # Case-sensitive completion must be off. _ and - will be interchangeable. | |
| # HYPHEN_INSENSITIVE="true" | |
| # Uncomment the following line to disable bi-weekly auto-update checks. | |
| # DISABLE_AUTO_UPDATE="true" | |
| # Uncomment the following line to change how often to auto-update (in days). | |
| # export UPDATE_ZSH_DAYS=13 | |
| # 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" | |
| # Uncomment the following line if you want to change the command execution time | |
| # stamp shown in the history command output. | |
| # You can set one of the optional three formats: | |
| # "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" | |
| # or set a custom format using the strftime function format specifications, | |
| # see 'man strftime' for details. | |
| # HIST_STAMPS="mm/dd/yyyy" | |
| # Would you like to use another custom folder than $ZSH/custom? | |
| # ZSH_CUSTOM=/path/to/new-custom-folder | |
| # Which plugins would you like to load? | |
| # Standard plugins can be found in ~/.oh-my-zsh/plugins/* | |
| # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ | |
| # Example format: plugins=(rails git textmate ruby lighthouse) | |
| # Add wisely, as too many plugins slow down shell startup. | |
| plugins=( | |
| #git zsh-completions zsh-autosuggestions | |
| ) | |
| source $ZSH/oh-my-zsh.sh | |
| source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh | |
| # User configuration | |
| # export MANPATH="/usr/local/man:$MANPATH" | |
| # You may need to manually set your language environment | |
| # export LANG=en_US.UTF-8 | |
| # Preferred editor for local and remote sessions | |
| # if [[ -n $SSH_CONNECTION ]]; then | |
| # export EDITOR='vim' | |
| # else | |
| # export EDITOR='mvim' | |
| # fi | |
| # Compilation flags | |
| # export ARCHFLAGS="-arch x86_64" | |
| # ssh | |
| # export SSH_KEY_PATH="~/.ssh/rsa_id" | |
| # Set personal aliases, overriding those provided by oh-my-zsh libs, | |
| # plugins, and themes. Aliases can be placed here, though oh-my-zsh | |
| # users are encouraged to define aliases within the ZSH_CUSTOM folder. | |
| # For a full list of active aliases, run `alias`. | |
| # | |
| # Example aliases | |
| # alias zshconfig="mate ~/.zshrc" | |
| # alias ohmyzsh="mate ~/.oh-my-zsh" | |
| [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment