Coder Social home page Coder Social logo

dotfiles-public's Introduction

dotfiles-public

These are my dotfiles and cheatsheets for basic Terminal setup on MacOS / Linux / Windows WSL2.

Setup Zsh/Starship

I use Zsh as my default shell, Oh-my-zsh for plugins and Startship for my prompt. The themes I have also require Nerd Fonts.

  • Run the installation commands below
  • copy .zshrc file and the directories into your $HOME directory
  • you may need to tweak some settings and install extra dependencies to get it to work in your environment. Refer to the documentation for Zsh, Oh-my-zsh and Startship prompt.
#Zsh - Linux Debian/Windows WSL2
sudo apt update
sudo apt install zsh -y
chsh -s /usr/bin/zsh

#Oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

#ZSH plugins
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlightingc

#Starship Prompt
curl -sS https://starship.rs/install.sh | sh

# Nerd Fonts - Hack font
git clone --depth 1 https://github.com/ryanoasis/nerd-fonts
cd nerd-fonts
./install.sh Hack

Other Tools

### Basic tools, nerdfont, fuzzy finders
sudo apt update
sudo apt install peco -y
sudo apt install exa -y
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
sudo apt install python3-pip

Neo vim install

sudo apt install neovim -y
sudo apt install exuberant-ctags

Cheatsheets - Frequently used commands

Zsh-Z

z  # Searches frequently access directory

FZF - Fuzzy Search

^r  # Searches command history
^t  # Searches directories

Tmux

tmux new -s <session name>  # create
tmux a -s <session name>    # attach
tmux kill-session -a  	    # kill all sessions but current

Sessions -> Windows -> Panes

^a commands: (^b is rebound to ^a in my tmux cnfg)

Sessions

:new -s <session name>
s	# choose session
$	# rename session
d 	# detach session

Windows

c 	# creates window
w 	# preview window
, 	# rename window
& 	# close window

Panes

% 	   # right
" 	   # bottem
arrows 	   # switch between panes
z 	   # toggle zoom
x 	   # close current pane
! 	   # convert pane into window

Re-read config

:source-file ~/.tmux.conf

dotfiles-public's People

Contributors

devopsjourney1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.