Skip to content

Instantly share code, notes, and snippets.

View AmirMuha's full-sized avatar

AmirMohammad MirzaeiRad AmirMuha

View GitHub Profile
@AmirMuha
AmirMuha / watch.sh
Created July 6, 2023 15:54
shell script for watching c plus plus file/files for changes
#!/bin/zsh
# Define color variables
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
BLUE='\033[0;34m'
NC='\033[0m' # No Color
@AmirMuha
AmirMuha / watch.sh
Created July 6, 2023 15:53
shell script for watching python file/files for changes
#!/bin/zsh
# Define color variables
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
BLUE='\033[0;34m'
NC='\033[0m' # No Color
clear_console=true
@AmirMuha
AmirMuha / coc-settings.json
Created July 6, 2023 15:50
my neovim config
{
"eslint.autoFixOnSave": true,
"coc.preferences.formatOnSaveFiletypes": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],
"clangd.path": "~/.config/coc/extensions/coc-clangd-data/install/16.0.2/clangd_16.0.2/bin/clangd",
"cpp": {
@AmirMuha
AmirMuha / .vimrc
Created August 3, 2022 05:44
My beloved .vimrc
let g:ale_disable_lsp = 1
"automated installation of vimplug if not installed
if empty(glob('~/.local/share/nvim/site/autoload/plug.vim'))
silent !curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source ~/.config/nvim/init.vim
endif
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'itchyny/lightline.vim'
@AmirMuha
AmirMuha / .gitconfig
Created August 3, 2022 05:43
My beloved .gitconfig
[user]
name = amirmuha
email = mirzaii4046@gmail.com
[color]
ui = true
[alias]
git = !git
l = git log --pretty=format:'%C(yellow)%h%Creset %ad | %Cgreen%s%Creset %Cred%d%Creset %Cblue[%an]' --date=short
lc2 = git log --abbrev-commit --abbrev=5 --oneline
s = git status -s
@AmirMuha
AmirMuha / .tmux.conf
Last active November 29, 2023 15:08
My beloved tmux.conf
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'nhdaly/tmux-better-mouse-mode'
set -g @plugin 'jaclu/tmux-mouse-swipe'
set -g @plugin 'tmux-plugins/tmux-cpu'
set-option -g @plugin 'b0o/tmux-autoreload'
set -g @plugin 'dracula/tmux'