zsh cleanup
This commit is contained in:
@@ -1,34 +1,3 @@
|
|||||||
#export PATH=/opt/homebrew/opt/python@3.9/libexec/bin:$PATH:$HOME/bin
|
|
||||||
|
|
||||||
HOST_NAME=MB
|
|
||||||
|
|
||||||
export PATH=$PATH:$HOME/bin
|
|
||||||
|
|
||||||
export CLICOLOR=1
|
|
||||||
export LSCOLORS=GxFxCxDxBxegedabagaced
|
|
||||||
|
|
||||||
txtred='\e[0;31m' # Red
|
|
||||||
txtgrn='\e[0;32m' # Green
|
|
||||||
bldgrn='\e[1;32m' # Bold Green
|
|
||||||
bldpur='\e[1;35m' # Bold Purple
|
|
||||||
txtrst='\e[0m' # Text Reset
|
|
||||||
|
|
||||||
emojis=("🌐" "🎲" "🌵")
|
|
||||||
|
|
||||||
EMOJI=${emojis[$RANDOM % ${#emojis[@]} ]}
|
|
||||||
|
|
||||||
print_before_the_prompt () {
|
|
||||||
dir=$PWD
|
|
||||||
home=$HOME
|
|
||||||
dir=${dir/"$HOME"/"~"}
|
|
||||||
printf "\n $txtred%s: $bldpur%s $txtgrn%s\n$txtrst" "$HOST_NAME" "$dir" "$(vcprompt)"
|
|
||||||
}
|
|
||||||
|
|
||||||
PROMPT_COMMAND=print_before_the_prompt
|
|
||||||
PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
|
|
||||||
PS1="$EMOJI > "
|
|
||||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
|
||||||
|
|
||||||
#fortune | cowsay -f tux "ara ara kulvir kun"
|
#fortune | cowsay -f tux "ara ara kulvir kun"
|
||||||
|
|
||||||
# ----------------------
|
# ----------------------
|
||||||
@@ -41,3 +10,26 @@ alias gd='git diff'
|
|||||||
alias gpl='git pull'
|
alias gpl='git pull'
|
||||||
alias gp='git push'
|
alias gp='git push'
|
||||||
alias gs='git status'
|
alias gs='git status'
|
||||||
|
|
||||||
|
alias python='python3'
|
||||||
|
|
||||||
|
alias nv='nvim'
|
||||||
|
|
||||||
|
# Air for GO hot reload
|
||||||
|
alias air="~/go/bin/air"
|
||||||
|
|
||||||
|
# homebrew
|
||||||
|
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||||
|
|
||||||
|
# cool to use tools (if ever wanted to)
|
||||||
|
alias neofetch="macchina"
|
||||||
|
# neofetch
|
||||||
|
|
||||||
|
# bun
|
||||||
|
export BUN_INSTALL="$HOME/.bun"
|
||||||
|
export PATH="$BUN_INSTALL/bin:$PATH"
|
||||||
|
|
||||||
|
# bun completions
|
||||||
|
[ -s "/Users/kulvir/.bun/_bun" ] && source "/Users/kulvir/.bun/_bun"
|
||||||
|
|
||||||
|
eval "$(starship init bash)"
|
||||||
|
|||||||
107
.config/starship.toml
Normal file
107
.config/starship.toml
Normal file
@@ -0,0 +1,107 @@
|
|||||||
|
"$schema" = 'https://starship.rs/config-schema.json'
|
||||||
|
|
||||||
|
add_newline = true
|
||||||
|
continuation_prompt = '▶▶ '
|
||||||
|
format = """$directory$all$character"""
|
||||||
|
palette = "catppuccin_mocha"
|
||||||
|
|
||||||
|
[aws]
|
||||||
|
symbol = ""
|
||||||
|
|
||||||
|
[aws.region_aliases]
|
||||||
|
ap-southeast-1 = 'in'
|
||||||
|
|
||||||
|
# [aws.profile_aliases]
|
||||||
|
# Enterprise_Naming_Scheme-voidstars = 'void**'
|
||||||
|
|
||||||
|
[bun]
|
||||||
|
format = '[🍞bun $version ](bold green)'
|
||||||
|
version_format = '${major}.${minor}'
|
||||||
|
|
||||||
|
[c]
|
||||||
|
format = '[$symbol $name-$version ]($style)'
|
||||||
|
symbol = ""
|
||||||
|
version_format = '${major}.${minor}'
|
||||||
|
|
||||||
|
[character]
|
||||||
|
success_symbol = '[➜ ](bold fg:green)'
|
||||||
|
error_symbol = '[⊘ ](bold fg:red)'
|
||||||
|
|
||||||
|
[cmd_duration]
|
||||||
|
disabled = true
|
||||||
|
|
||||||
|
[directory]
|
||||||
|
truncation_length = 2
|
||||||
|
|
||||||
|
[git_branch]
|
||||||
|
format='[ $symbol$branch(: $remote_branch )]($style)'
|
||||||
|
style='bold purple'
|
||||||
|
symbol=" "
|
||||||
|
always_show_remote = true
|
||||||
|
|
||||||
|
[git_state]
|
||||||
|
cherry_pick = '[🍒 PICKING](bold red)'
|
||||||
|
|
||||||
|
[git_metrics]
|
||||||
|
format = '[+$added]($added_style) [-$deleted]($deleted_style) '
|
||||||
|
disabled = false
|
||||||
|
|
||||||
|
[git_status]
|
||||||
|
format = '([\[$all_status$ahead_behind\]]($style) )'
|
||||||
|
ahead = '⇡${count}'
|
||||||
|
diverged = '⇕⇡${ahead_count}⇣${behind_count}'
|
||||||
|
behind = '⇣${count}'
|
||||||
|
conflicted = '🏳'
|
||||||
|
stashed = '📦'
|
||||||
|
staged = '[++\($count\)](green)'
|
||||||
|
deleted = '🗑'
|
||||||
|
|
||||||
|
|
||||||
|
[golang]
|
||||||
|
format = '[ $version ](bold cyan)'
|
||||||
|
version_format = '${major}.${minor}'
|
||||||
|
|
||||||
|
[nodejs]
|
||||||
|
disabled = true
|
||||||
|
|
||||||
|
[package]
|
||||||
|
disabled = false
|
||||||
|
|
||||||
|
[palettes.catppuccin_mocha]
|
||||||
|
rosewater = "#f5e0dc"
|
||||||
|
flamingo = "#f2cdcd"
|
||||||
|
pink = "#f5c2e7"
|
||||||
|
mauve = "#cba6f7"
|
||||||
|
red = "#f38ba8"
|
||||||
|
maroon = "#eba0ac"
|
||||||
|
peach = "#fab387"
|
||||||
|
yellow = "#f9e2af"
|
||||||
|
green = "#a6e3a1"
|
||||||
|
teal = "#94e2d5"
|
||||||
|
sky = "#89dceb"
|
||||||
|
sapphire = "#74c7ec"
|
||||||
|
blue = "#89b4fa"
|
||||||
|
lavender = "#b4befe"
|
||||||
|
text = "#cdd6f4"
|
||||||
|
subtext1 = "#bac2de"
|
||||||
|
subtext0 = "#a6adc8"
|
||||||
|
overlay2 = "#9399b2"
|
||||||
|
overlay1 = "#7f849c"
|
||||||
|
overlay0 = "#6c7086"
|
||||||
|
surface2 = "#585b70"
|
||||||
|
surface1 = "#45475a"
|
||||||
|
surface0 = "#313244"
|
||||||
|
base = "#1e1e2e"
|
||||||
|
mantle = "#181825"
|
||||||
|
crust = "#11111b"
|
||||||
|
|
||||||
|
[python]
|
||||||
|
symbol = " "
|
||||||
|
format = '[$symbol$version ](bold yellow)'
|
||||||
|
version_format = '${major}.${minor}'
|
||||||
|
|
||||||
|
[sudo]
|
||||||
|
format = '[ as $symbol]($style)'
|
||||||
|
symbol = " "
|
||||||
|
style = 'bold blue'
|
||||||
|
disabled = false
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"features": {
|
"base_keymap": "VSCode",
|
||||||
|
"features": {
|
||||||
"copilot": false
|
"copilot": false
|
||||||
},
|
},
|
||||||
"telemetry": {
|
"telemetry": {
|
||||||
|
|||||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -6,10 +6,9 @@
|
|||||||
*.cache*
|
*.cache*
|
||||||
*.local*
|
*.local*
|
||||||
*.npm*
|
*.npm*
|
||||||
*.oh-my-zsh*
|
|
||||||
*.vscode*
|
*.vscode*
|
||||||
*.zcompdump-Kulvir*
|
*.zcompdump-Kulvir*
|
||||||
*.zcompdump-Kulvir*
|
*.zcompdump*
|
||||||
*.zsh_*
|
*.zsh_*
|
||||||
*Application*
|
*Application*
|
||||||
*Desktop/*
|
*Desktop/*
|
||||||
|
|||||||
116
.zshrc
116
.zshrc
@@ -1,108 +1,7 @@
|
|||||||
# If you come from bash you might have to change your $PATH.
|
### ---- Syntax Highlighting ----
|
||||||
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||||
|
|
||||||
# Path to your oh-my-zsh installation.
|
# ---- Git Aliases ----
|
||||||
export ZSH="$HOME/.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"
|
|
||||||
|
|
||||||
# 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 one of the following lines to change the auto-update behavior
|
|
||||||
# zstyle ':omz:update' mode disabled # disable automatic updates
|
|
||||||
# zstyle ':omz:update' mode auto # update automatically without asking
|
|
||||||
# zstyle ':omz:update' mode reminder # just remind me to update when it's time
|
|
||||||
|
|
||||||
# Uncomment the following line to change how often to auto-update (in days).
|
|
||||||
# zstyle ':omz:update' frequency 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.
|
|
||||||
# You can also set it to another string to have that shown instead of the default red dots.
|
|
||||||
# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f"
|
|
||||||
# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #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
|
|
||||||
zsh-autosuggestions
|
|
||||||
zsh-syntax-highlighting
|
|
||||||
)
|
|
||||||
|
|
||||||
source $ZSH/oh-my-zsh.sh
|
|
||||||
|
|
||||||
# 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`.
|
|
||||||
|
|
||||||
# ----------------------
|
|
||||||
# Git Aliases
|
|
||||||
# ----------------------
|
|
||||||
alias ga='git add'
|
alias ga='git add'
|
||||||
alias gaa='git add -A'
|
alias gaa='git add -A'
|
||||||
alias gcm='git commit -m'
|
alias gcm='git commit -m'
|
||||||
@@ -115,22 +14,21 @@ alias python='python3'
|
|||||||
# alias ls='colorls'
|
# alias ls='colorls'
|
||||||
alias nv='nvim'
|
alias nv='nvim'
|
||||||
|
|
||||||
# Go hot reload package
|
# ---- Air GO hot reload ----
|
||||||
alias air="~/go/bin/air"
|
alias air="~/go/bin/air"
|
||||||
|
|
||||||
# homebrew
|
# ---- homebrew ----
|
||||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||||
|
|
||||||
# cool to use tools (if ever wanted to)
|
# cool to use tools (if ever wanted to)
|
||||||
alias neofetch="macchina"
|
alias neofetch="macchina"
|
||||||
# neofetch
|
# neofetch
|
||||||
|
|
||||||
# bun
|
# ---- bun ----
|
||||||
export BUN_INSTALL="$HOME/.bun"
|
export BUN_INSTALL="$HOME/.bun"
|
||||||
export PATH="$BUN_INSTALL/bin:$PATH"
|
export PATH="$BUN_INSTALL/bin:$PATH"
|
||||||
|
|
||||||
# bun completions
|
# bun completions
|
||||||
[ -s "/Users/kulvir/.bun/_bun" ] && source "/Users/kulvir/.bun/_bun"
|
[ -s "/Users/kulvir/.bun/_bun" ] && source "/Users/kulvir/.bun/_bun"
|
||||||
|
|
||||||
# spaceship for zsh prompts
|
eval "$(starship init zsh)"
|
||||||
source /opt/homebrew/opt/spaceship/spaceship.zsh
|
|
||||||
|
|||||||
35
readme.md
35
readme.md
@@ -1,25 +1,22 @@
|
|||||||
# Fow weekly hard resets
|
# Every week
|
||||||
|
|
||||||
## Install all the applications using Homebrew
|
## brew installs
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo brew install aerial alacritty cloudflare-warp discord duckduckgo firefox google-chrome keka kitty linearmouse microsoft-edge obsidian postman raycast spotify stats telegram visual-studio-code zoom
|
brew install aerial alacritty cloudflare-warp discord duckduckgo firefox google-chrome keka kitty linearmouse microsoft-edge obsidian postman raycast spotify stats telegram
|
||||||
```
|
```
|
||||||
|
|
||||||
## Install all the Formulae with Homebrew
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
brew install docker git go macchina neofetch neovim node python3 spaceship tmux
|
brew install docker git go macchina neofetch neovim python3 ripgrep starship tmux zsh-syntax-highlighting
|
||||||
```
|
```
|
||||||
|
|
||||||
## Some of the applications to install from appstore
|
## sed nah brew installs
|
||||||
|
|
||||||
- Zed
|
- [Zed](https://zed.dev/)
|
||||||
- Spark
|
- Spark
|
||||||
- ppt
|
- [amie](amie.so)
|
||||||
- amie.so
|
|
||||||
- steam
|
- steam
|
||||||
- premiere
|
- premiere pro (always a nightmare)
|
||||||
|
|
||||||
## I always forget to set it up first
|
## I always forget to set it up first
|
||||||
|
|
||||||
@@ -28,17 +25,7 @@ brew install docker git go macchina neofetch neovim node python3 spaceship tmux
|
|||||||
|
|
||||||
## misc stuff
|
## misc stuff
|
||||||
|
|
||||||
**Link to some cool stuff like wallpapers [drive](https://drive.google.com/drive/folders/1Bdx17wD76t5JKWm4U7bPDri1SqV-SeSj?usp=drive_link)**
|
**Wallpapers [drive - fkc u](https://drive.google.com/drive/folders/1Bdx17wD76t5JKWm4U7bPDri1SqV-SeSj?usp=drive_link)**
|
||||||
|
|
||||||
<details>
|
- [tmux/tpm](https://github.com/tmux-plugins/tpm)
|
||||||
<summary> Zsh plugins </summary>
|
- [bun](https://bun.sh/docs/installation)
|
||||||
- [zsh-syntax-highlighting](https://github.com/zsh-users/zsh-syntax-highlighting)
|
|
||||||
- [zsh-autosuggestions](https://github.com/zsh-users/zsh-autosuggestions)
|
|
||||||
</details>
|
|
||||||
|
|
||||||
<details>
|
|
||||||
<summary>Package Managers</summary>
|
|
||||||
- [bun](https://bun.sh/docs/installation)
|
|
||||||
- [tmux/tpm](https://github.com/tmux-plugins/tpm)
|
|
||||||
- nvim (formatters & linters)
|
|
||||||
</details>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user