```diff + DOCKER + DOCKER compose + k8s setup | 3min | mac | tested # https://youtu.be/LtooWDUL1Js (install docker + docker compose + k8s) ``` --- Test Minikube/k8s : $minikube dashboard -> open k8s dashboard ```diff +method 1 : use above docker setup k8s +method 2: Minikube/k8s Setup : https://minikube.sigs.k8s.io/docs/start/ 1. run below command $curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-darwin-amd64 $sudo install minikube-darwin-amd64 /usr/local/bin/minikube 2. start/stop and check minikube status $minikube start $minikube stop $minikube status Open UI dashboard : $minikube dashboard ^https://kubernetes.io/docs/tutorials/hello-minikube/ 3. k8s commands : set alias & use -> source /Users/yadav.hariom/.bash_profile alias k8start="minikube start" alias k8stop="minikube stop" alias k8dash="minikube dashboard" alias all="kubectl get all" alias get="kubectl get" alias apply="kubectl apply -f" alias delete="kubectl delete -f" alias describe="kubectl describe " alias pod="kubectl get pod" alias podw="kubectl get pod -o wide" alias pody="kubectl get pod -o yaml" alias podww="kubectl get pod -o wide --watch" alias depl="kubectl get deployment" alias deplw="kubectl get deployment -o wide" alias deply="kubectl get deployment -o yaml" alias deplww="kubectl get deployment -o wide --watch" alias service="kubectl get service" alias servicew="kubectl get service -o wide" alias servicey="kubectl get service -o yaml" alias serviceww="kubectl get service -o wide --watch" alias namespace="kubectl get namespace" alias namespacew="kubectl get namespace -o wide --watch" alias namespacey="kubectl get namespace -o yaml" ``` --- ```diff + KAFKA setup | 2min | mac | tested + Method 1: using docker compose file 1. go to file location : https://github.com/hocyadav/java-spring-boot-2021/blob/master/apache-camel-integration-pattern/docker-compose.yaml 2. run $docker-compose up (it will create 2 container one for zookeper and one for kafka) 3. now use this kafka host+port : localhot:9092 + Method 2: using zip file 1. https://kafka.apache.org/quickstart -> download link -> get zip/tgz file 2. upzip -> go to folder -> 1st start zookeeper then start kafka 3. start zookeeper : $bin/zookeeper-server-start.sh config/zookeeper.properties (we can change zookeeper port in properties file) 4. start kafka : $bin/kafka-server-start.sh config/server.properties (we can change port for both kafka + zookeeper) 5. stop zookeeper : $bin/zookeeper-server-stop.sh , stop kafka : $bin/kafka-server-stop.sh +Quick start //zookeeper alias startz="/Users/yadav.hariom/local_tool_setup/kafka_2.13-2.8.0/bin/zookeeper-server-start.sh /Users/yadav.hariom/local_tool_setup/kafka_2.13-2.8.0/config/zookeeper.properties" alias stopz="/Users/yadav.hariom/local_tool_setup/kafka_2.13-2.8.0/bin/zookeeper-server-stop.sh" //kafka alias startk="/Users/yadav.hariom/local_tool_setup/kafka_2.13-2.8.0/bin/kafka-server-start.sh /Users/yadav.hariom/local_tool_setup/kafka_2.13-2.8.0/config/server.properties" alias stopk="/Users/yadav.hariom/local_tool_setup/kafka_2.13-2.8.0/bin/kafka-server-stop.sh" ``` --- ```diff + REDIS setup | 2min | mac | tested 1. download https://redis.io/topics/quickstart -> http://download.redis.io/redis-stable.tar.gz 2. unzip -> go to redis folder -> First run $make (build step) -> start $src/redis-serve -> stop ctrl + c 3. for cli client : start $src/redis-cli -> send "ping" we will get pong +Quick start alias startr="/Users/yadav.hariom/local_tool_setup/redis-stable/src/redis-server" ``` --- Test HBase : http://localhost:16010/master-status ```diff + method 1 : Apache HBASE Database setup | 2min| mac | tested 1. download zip https://drive.google.com/file/d/1YFBbrQX7_YGG3JFXiwcvSke7j08wpExJ/view?usp=sharing or https://hbase.apache.org/downloads.html 2. unzip -> go to hbase folder -> start $bin/start-hbase.sh , stop $bin/stop-hbase.sh +Quick start alias starth="/Users/yadav.hariom/local_tool_setup/hbase-2.2.3/bin/start-hbase.sh" alias stoph="/Users/yadav.hariom/local_tool_setup/hbase-2.2.3/bin/stop-hbase.sh" commands: open hbase shell -> $./bin/hbase shell +Method 2: Hbase docker : https://blueskyareahm.medium.com/try-hbase-shell-with-docker-image-6547d93df4be 1. create docker-compose.yml 2. start docker compose +OPTIONAL configuration : save data once hbase is stopped. [Approach : create different directory and link] $mkdir -p hbase_my_data/rootdir $mkdir -p hbase_my_data/datadir add below property details inside hbase-site.xml , then start hbase <configuration> <property> <name>hbase.rootdir</name> <value>file:///Users/yadav.hariom/local_tool_setup/hbase-2.2.3/hbase_my_data/rootdir</value> </property> <property> <name>hbase.zookeeper.property.dataDir</name> <value>/Users/yadav.hariom/local_tool_setup/hbase-2.2.3/hbase_my_data/datadir</value> </property> </configuration> ``` --- Test elastic search : http://localhost:9200 ```diff + ELASTIC SEARCH Database | 3min | mac | tested + Method 1: using zip 1. run below 4 commands -> https://www.elastic.co/guide/en/elasticsearch/reference/current/brew.html wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.13.2-darwin-x86_64.tar.gz wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.13.2-darwin-x86_64.tar.gz.sha512 shasum -a 512 -c elasticsearch-7.13.2-darwin-x86_64.tar.gz.sha512 tar -xzf elasticsearch-7.13.2-darwin-x86_64.tar.gz 2. go to ES folder -> elasticsearch-7.13.2/ -> start: $./bin/elasticsearch stop: ctrl + c + Method 2: using brew 1. go to : https://www.elastic.co/guide/en/elasticsearch/reference/current/brew.html 2. brew install elastic/tap/elasticsearch-full 3. test: run command $curl -X GET "localhost:9200/?pretty" +Quick start alias startes="cd /Users/yadav.hariom/local_tool_setup/elasticsearch-7.13.2/ && ./bin/elasticsearch" ``` --- Test kibana : http://localhost:5601 ```diff + KIBANA dashboard setup | 3min | mac | tested +Method 1: using zip 1. run below 4 command -> https://www.elastic.co/guide/en/kibana/current/targz.html curl -O https://artifacts.elastic.co/downloads/kibana/kibana-7.13.2-darwin-x86_64.tar.gz curl https://artifacts.elastic.co/downloads/kibana/kibana-7.13.2-darwin-x86_64.tar.gz.sha512 | shasum -a 512 -c - tar -xzf kibana-7.13.2-darwin-x86_64.tar.gz 2. go to KIBANA folder -> $cd kibana-7.13.2-darwin-x86_64/ -> start: $./bin/kibana , stop: ctrl + c +Method 2: https://www.elastic.co/guide/en/kibana/current/brew.html brew install elastic/tap/kibana-full +Quick start alias startkibana="cd /Users/yadav.hariom/local_tool_setup/kibana-7.13.2-darwin-x86_64/ && ./bin/kibana" ``` --- Test ActiveMQ : http://localhost:8161 ```diff + ACTIVE MQ | 2min | mac | tested 1. https://hub.docker.com/r/rmohr/activemq 2. start: docker run -p 61616:61616 -p 8161:8161 rmohr/activemq 3. test: http://localhost:8161 -> go to manage admin -> username/password : admin/admin ``` ```diff 1st July 2021 - TODO: 1. create a single docker-compose file for all above services -> single click install all - TODO: 2. create a K8S config file for TODO 1 - TODO: 3. create a HELM Chart file for TODO 2 ``` --- Test Nginx : http://localhost:8080/ ```diff + Nginx server | 3min | mac | tested 1. brew install nginx 2. start/stop: $brew services start/stop nginx -> test localhost:8080 start stop : $nginx , $nginx -s stop 3. change config file : go to $cd /usr/local/etc/nginx -> $vim nginx.conf 4. test load balancing -> 1st run 4instance of any app via docker -> then update nginx config file +Commands : To see all services: $brew services list Start nginx service: $brew services start nginx Stop nginx Service: $brew services stop nginx Restart nginx service(stop & then start): $brew services restart nginx Check and Validate config : $nginx -t Check How many master & worker process is running (by default 1 master & 1 worker): $ps -ef | grep nginx ``` --- Test Zipkin : http://localhost:9411 ```diff + Zipkin | 1 min | mac/any OS | tested +Method 1: using docker : https://zipkin.io/pages/quickstart $docker run -d -p 9411:9411 openzipkin/zipkin +Method 2 : using zip a. download : $curl -sSL https://zipkin.io/quickstart.sh | bash -s b. start : $java -jar zipkin.jar + NOTE: Zipkin tool Used : Spring sleuth (trace id, span id), OR in place of Zipkin we can use Elastic search tool to store Spring sleuth (trace id, span id) +Quick start alias startzipkin="cd /zipkin_jar_path/ && java -jar zipkin.jar" ``` Test Jaeger : http://localhost:16686/ ```diff +Method 1 : using Docker : https://www.jaegertracing.io/docs/1.24/getting-started/ 1. start jaeger docker run -d --name jaeger -e COLLECTOR_ZIPKIN_HOST_PORT=:9411 -p 5775:5775/udp -p 6831:6831/udp -p 6832:6832/udp -p 5778:5778 -p 16686:16686 -p 14268:14268 -p 14250:14250 -p 9411:9411 jaegertracing/all-in-one:1.24 2. stop jaeger docker rm container_id +Method 2: using zip https://www.jaegertracing.io/download/ 1. download zip -> go to folder -> start $./jaeger-all-in-one --collector.zipkin.host-port=:9411 +Quick start alias startjaeger="cd /Users/yadav.hariom/local_tool_setup/jaeger-1.24.0-darwin-amd64 && ./jaeger-all-in-one --collector.zipkin.host-port=:9411" ``` --- - commands open ~/.zshrc open /Users/yadav.hariom/.bash_profile open .kube/config --- - .bash_profile ``` ############################################## JAVA ################################################## #set java 8 export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_291.jdk/Contents/Home #set java 14 or override export JAVA_HOME=$(/usr/libexec/java_home -v 14.0.2) alias java8="export JAVA_HOME=$(/usr/libexec/java_home -v 1.8.0_291)" alias java14="export JAVA_HOME=$(/usr/libexec/java_home -v 14.0.2)" ############################################## MySQL ################################################## export PATH=${PATH}:/usr/local/mysql-8.0.25-macos11-x86_64/bin ############################################## redish ################################################## alias cdr="/Users/yadav.hariom/local_tool_setup/redis-stable" alias startr="/Users/yadav.hariom/local_tool_setup/redis-stable/src/redis-server" alias sr="/Users/yadav.hariom/local_tool_setup/redis-stable/src/redis-server" alias startr-z="startr & sleep 3s; startzipkin ; fg" ############################################## apache hbase ################################################## alias cdh="/Users/yadav.hariom/local_tool_setup/hbase-2.2.3" alias starth="/Users/yadav.hariom/local_tool_setup/hbase-2.2.3/bin/start-hbase.sh" alias stoph="/Users/yadav.hariom/local_tool_setup/hbase-2.2.3/bin/stop-hbase.sh" alias shb="/Users/yadav.hariom/local_tool_setup/hbase-2.2.3/bin/start-hbase.sh" #alias startall="startz & startk & starth & startr" #alias stopall="stopz & stopk & stoph" ############################################## GIT ################################################## # Shortcuts to my Code folder in my home directory alias code="/Users/yadav.hariom/git_code" alias hycode="/Users/yadav.hariom/hy_git_code" alias gstatus="git status" alias gadd="git add" alias gfetch="git fetch --all" alias gcommit="git commit -m" alias gpo="git push origin" alias gpom="git push origin master" alias gstash="git stash push -m" alias gstashl="git stash list" #add 0} alias gapply="git stash apply stash@{" alias gst="git stash" alias gstm="git stash push -m" alias gstl="git stash list" #git stash apply stash@{0} or enter stash name alias gsta="git stash apply" alias add_id_rsa="ssh-add ~/.ssh/id_rsa" ############################################## zookeeper & kafka ########################################### alias cdk="cd /Users/yadav.hariom/local_tool_setup/kafka_2.13-2.8.0" alias startz="/Users/yadav.hariom/local_tool_setup/kafka_2.13-2.8.0/bin/zookeeper-server-start.sh /Users/yadav.hariom/local_tool_setup/kafka_2.13-2.8.0/config/zookeeper.properties" alias stopz="/Users/yadav.hariom/local_tool_setup/kafka_2.13-2.8.0/bin/zookeeper-server-stop.sh" alias sz="/Users/yadav.hariom/local_tool_setup/kafka_2.13-2.8.0/bin/zookeeper-server-start.sh /Users/yadav.hariom/local_tool_setup/kafka_2.13-2.8.0/config/zookeeper.properties" alias startk="/Users/yadav.hariom/local_tool_setup/kafka_2.13-2.8.0/bin/kafka-server-start.sh /Users/yadav.hariom/local_tool_setup/kafka_2.13-2.8.0/config/server.properties" alias stopk="/Users/yadav.hariom/local_tool_setup/kafka_2.13-2.8.0/bin/kafka-server-stop.sh" alias sk="/Users/yadav.hariom/local_tool_setup/kafka_2.13-2.8.0/bin/kafka-server-start.sh /Users/yadav.hariom/local_tool_setup/kafka_2.13-2.8.0/config/server.properties" #run zookeeper and kafka seperate #run redis and zipkin together #alias startz-k="startz & sleep 8s; startk; fg" #alias startz-k-r="startz & sleep 8s; startk & startr; fg" #alias startz-k-r-z="startz & sleep 8s; startk & startr & startzipkin; fg" # Kafka list topic command alias cmd_klist="/Users/yadav.hariom/local_tool_setup/kafka_2.13-2.8.0/bin/kafka-topics.sh --bootstrap-server localhost:9092 --list" alias echo_klist="echo /Users/yadav.hariom/local_tool_setup/kafka_2.13-2.8.0/bin/kafka-topics.sh --bootstrap-server localhost:9092 --list" alias klist="n_line && echo_klist && n_line && n_space && cmd_klist" # Kafka create new topic alias cmd_kct="/Users/yadav.hariom/local_tool_setup/kafka_2.13-2.8.0/bin/kafka-topics.sh --bootstrap-server localhost:9092 --create --topic" alias echo_kct="echo /Users/yadav.hariom/local_tool_setup/kafka_2.13-2.8.0/bin/kafka-topics.sh --bootstrap-server localhost:9092 --create --topic {topic_name}" alias kcreate="n_line && echo_kct && n_line && n_space && cmd_kct" # Kafka describe single topic alias cmd_kdt="/Users/yadav.hariom/local_tool_setup/kafka_2.13-2.8.0/bin/kafka-topics.sh --bootstrap-server localhost:9092 --describe --topic" alias echo_kdt="echo /Users/yadav.hariom/local_tool_setup/kafka_2.13-2.8.0/bin/kafka-topics.sh --bootstrap-server localhost:9092 --describe --topic {topic_name}" alias kdesc="n_line && echo_kdt && n_line && n_space && cmd_kdt" # Kafka publish data / write some events alias kpublish="/Users/yadav.hariom/local_tool_setup/kafka_2.13-2.8.0/bin/kafka-console-producer.sh --bootstrap-server localhost:9092 --topic" # Kafka consume data / read some events alias kcon0="/Users/yadav.hariom/local_tool_setup/kafka_2.13-2.8.0/bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --from-beginning --topic" alias kconsume="/Users/yadav.hariom/local_tool_setup/kafka_2.13-2.8.0/bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 record-earliest-offset --topic" ############################################## docker ################################################## alias d=docker alias dcon="docker container" alias dcom="docker-compose" alias dimage="docker images | grep" alias dps="docker ps -a | grep" #delete all stopped container alias drm="docker rm $(docker ps -a -q)" #stop all running container alias dstop="docker stop $(docker ps -a -q)" ############################################## k8s & helm ################################################## alias k="kubectl" alias k8start="minikube start" alias k8stop="minikube stop" alias k8ui="minikube dashboard" alias k8dash="minikube dashboard" # get all pods alias k8pod="kubectl get pod" alias pod="kubectl get pod" alias podw="kubectl get pod -o wide" alias podww="kubectl get pod -o wide --watch" alias pody="kubectl get pod -o yaml" #run without arg or we can pass pod container id alias podd="kubectl describe pod" alias kg="kubectl get" alias kget="kubectl get" alias get="kubectl get" alias kdepl="kubectl get deployment" alias depl="kubectl get deployment" alias deplw="kubectl get deployment -o wide" alias deplww="kubectl get deployment -o wide --watch" alias deply="kubectl get deployment -o yaml" #run without arg or we can pass depl id alias depld="kubectl describe deployment" alias kall="kubectl get all" alias all="kubectl get all" alias allw="kubectl get all -o wide" alias ally="kubectl get all -o yaml" alias kservice="kubectl get service" alias service="kubectl get service" alias servicew="kubectl get service -o wide" alias serviceww="kubectl get service -o wide --watch" alias servicey="kubectl get service -o yaml" #run without arg or we can pass service id alias serviced="kubectl describe service" alias namespace="kubectl get namespace" alias namespacew="kubectl get namespace -o wide --watch" alias namespacey="kubectl get namespace -o yaml" # create single pod alias kcf="kubectl create -f" # create multi pods alias kaf="kubectl apply -f" alias apply="kubectl apply -f" alias delete="kubectl delete -f" # delete pod alias kdf="kubectl delete -f" # describe pod alias describe="kubectl describe " ######### helm ############ alias h="helm" alias hlist="helm list" #$ helm delete -n default goodly-guppy alias hdelete="helm delete -n default" #$helm install --generate-name ./helm1 alias hinstall="helm install" #$ helm install --debug --dry-run goodly-guppy ./helm1 alias hdry="helm install --debug --dry-run" alias legacypod="kubectl get pod --context tls-preprod --namespace fk-sp-slm-legacy-adapter" export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH" ######################################## postman json view ################################################## # Postman listing API call test alias _json='python -m json.tool' ############################################## elastic search ################################################## export ES_HOME="/Users/yadav.hariom/local_tool_setup/elasticsearch-7.13.2" export KIBANA_HOME="/Users/yadav.hariom/local_tool_setup/kibana-7.13.2-darwin-x86_64" # elastic search , kibana alias startes="cd /Users/yadav.hariom/local_tool_setup/elasticsearch-7.13.2/ && ./bin/elasticsearch" alias ses="cd /Users/yadav.hariom/local_tool_setup/elasticsearch-7.13.2/ && ./bin/elasticsearch" alias startkibana="cd /Users/yadav.hariom/local_tool_setup/kibana-7.13.2-darwin-x86_64/ && ./bin/kibana" alias skibana="cd /Users/yadav.hariom/local_tool_setup/kibana-7.13.2-darwin-x86_64/ && ./bin/kibana" alias startzipkin="cd /Users/yadav.hariom/local_tool_setup && java -jar zipkin.jar" alias szipkin="cd /Users/yadav.hariom/local_tool_setup && java -jar zipkin.jar" alias startjaeger="cd /Users/yadav.hariom/local_tool_setup/jaeger-1.24.0-darwin-amd64 && ./jaeger-all-in-one --collector.zipkin.host-port=:9411" alias sjaeger="cd /Users/yadav.hariom/local_tool_setup/jaeger-1.24.0-darwin-amd64 && ./jaeger-all-in-one --collector.zipkin.host-port=:9411" ############################################## extra ################################################## alias n_line="echo ---------------" alias n_space="echo " # Quicker navigation alias ..="cd .." alias ...="cd ../.." alias ....="cd ../../.." alias .....="cd ../../../.." alias c='clear' alias ls="ls -lash" alias f=figlet #get pid and kill alias portls="lsof -i -P -n" export RED_ON_GREEN='\033[31;42m' export RESET='\033[0m' alias test123="echo \033[31;42m Hello world \033[0m" # git add + commit alias gac='function _blah(){echo "Running : git add $1"; sleep 1s; git add $1; echo "DONE\n"; sleep 1s; echo "Running : git commit -m $2"; sleep 1s; git commit -m $2; sleep 1s; echo "DONE\n"; };_blah' alias blah2='function _blah2(){echo -ne "##### (33%)\\r"; sleep 1; echo -ne "############### (66%)\\r"; echo -ne "\\n"};_blah2' alias ki='function _blah(){echo "get all pod : kgp=kubectl get pod"; echo ""; echo "create 1 pod : kcf=kubectl create -f"; echo "kaf=kubectl apply -f"};_blah' function wn { printf "\e]2;$1\a" } function tn { printf "\e]1;$1\a" } alias tl="figlet -f /Users/yadav.hariom/figlet-fonts-master/3d.flf" ################################# on call ################################## alias log="du -h /var/log/ --max-depth=2 | sort -hr" ############### go lang ####### # https://stackoverflow.com/questions/7970390/what-should-be-the-values-of-gopath-and-goroot #export GOPATH="/usr/local/go" #export GOROOT="/usr/local/go" #export PATH=$PATH:$GOROOT/bin #export GOPATH="/Users/yadav.hariom/git_code/listings/deployment/buildpacks/enricher-buildpack" #export GOROOT="/usr/local/go" #export PATH=$PATH:$GOPATH/bin #export GOROOT=/usr/local/go/go-1.4 #export GOPATH=/home/user/programming/go/packages #export PATH=$PATH:$GOROOT/bin:$GOPATH/bin #official : https://github.com/golang/go/wiki/SettingGOPATH export GOPATH=$HOME/go . "$HOME/.cargo/env" ``` --- - .zshrc ``` # 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. export ZSH="/Users/yadav.hariom/.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/ohmyzsh/ohmyzsh/wiki/Themes #ZSH_THEME="robbyrussell" #ZSH_THEME="agnoster" #ZSH_THEME="intheloop" #ZSH_THEME="strug" #ZSH_THEME="af-magic" #ZSH_THEME="aussiegeek" #awesome ZSH_THEME="pmcgee" #ZSH_THEME="amuse" #ZSH_THEME="bira" #ZSH_THEME="dogenpunk" #ZSH_THEME="gallois" #ZSH_THEME="refined" #ZSH_THEME="ys" #ZSH_THEME="aussiegeek" #ZSH_THEME="nicoulaj" # 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 $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 automatically update without prompting. # DISABLE_UPDATE_PROMPT="true" # Uncomment the following line to change how often to auto-update (in days). # export UPDATE_ZSH_DAYS=13 # Uncomment the following line if pasting URLs and other text is messed up. DISABLE_MAGIC_FUNCTIONS="true" # 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. # Caution: this setting can cause issues with multiline prompts (zsh 5.7.1 and newer seem to work) # See https://github.com/ohmyzsh/ohmyzsh/issues/5765 # 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 $ZSH/plugins/ # 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) source $ZSH/oh-my-zsh.sh source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh source ~/.zsh/zsh-completions/zsh-completions.plugin.zsh source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh source ~/.zsh/zsh-history-substring-search/zsh-history-substring-search.zsh source ~/.iterm2_shell_integration.zsh source /Users/yadav.hariom/.oh-my-zsh/plugins/history/history.plugin.zsh source /Users/yadav.hariom/.oh-my-zsh/plugins/sublime/sublime.plugin.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" # 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" alias ssh="fkst-cli installCert; ssh" test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh" || true ```