Setup zsh
This commit is contained in:
parent
443783a9f3
commit
1c38c7b171
3 changed files with 49 additions and 11 deletions
12
.bashrc
12
.bashrc
|
|
@ -5,18 +5,8 @@
|
||||||
# If not running interactively, don't do anything
|
# If not running interactively, don't do anything
|
||||||
[[ $- != *i* ]] && return
|
[[ $- != *i* ]] && return
|
||||||
|
|
||||||
export VISUAL='nvim'
|
source "~/.config/terminal/.setuprc"
|
||||||
export EDITOR="$VISUAL"
|
|
||||||
|
|
||||||
alias ls='ls --color=auto'
|
|
||||||
alias grep='grep --color=auto'
|
|
||||||
alias vim='nvim'
|
|
||||||
alias note='(cd ~/Notes/ && nvim ~/Notes/)'
|
|
||||||
alias note-diary='(cd ~/Notes/ && nvim ~/Notes/Diary.md)'
|
|
||||||
alias note-dsa='(cd ~/DSA/ && nvim ~/DSA/)'
|
|
||||||
PS1='[\u@\h \W]\$ '
|
PS1='[\u@\h \W]\$ '
|
||||||
|
|
||||||
eval "$(zoxide init bash --cmd cd)"
|
|
||||||
eval "$(fzf --bash)"
|
eval "$(fzf --bash)"
|
||||||
|
|
||||||
alias doch='sudo "$BASH" -c "$(history -p !!)"'
|
|
||||||
|
|
|
||||||
15
.config/terminal/.setuprc
Normal file
15
.config/terminal/.setuprc
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
# If not running interactively, don't do anything
|
||||||
|
[[ $- != *i* ]] && return
|
||||||
|
|
||||||
|
export VISUAL='nvim'
|
||||||
|
export EDITOR="$VISUAL"
|
||||||
|
|
||||||
|
alias ls='ls --color=auto'
|
||||||
|
alias grep='grep --color=auto'
|
||||||
|
alias vim='nvim'
|
||||||
|
alias note='(cd ~/Notes/ && nvim ~/Notes/)'
|
||||||
|
alias note-diary='(cd ~/Notes/ && nvim ~/Notes/Diary.md)'
|
||||||
|
alias note-dsa='(cd ~/DSA/ && nvim ~/DSA/)'
|
||||||
|
alias doch='sudo "$BASH" -c "$(history -p !!)"'
|
||||||
|
|
||||||
|
eval "$(zoxide init bash --cmd cd)"
|
||||||
33
.zshrc
Normal file
33
.zshrc
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
# If you come from bash you might have to change your $PATH.
|
||||||
|
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
||||||
|
|
||||||
|
export ZSH="$HOME/.oh-my-zsh"
|
||||||
|
|
||||||
|
ZSH_THEME="lukerandall"
|
||||||
|
|
||||||
|
plugins=(
|
||||||
|
git
|
||||||
|
archlinux
|
||||||
|
zsh-autosuggestions
|
||||||
|
zsh-syntax-highlighting
|
||||||
|
)
|
||||||
|
|
||||||
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
|
# Check archlinux plugin commands here
|
||||||
|
# https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/archlinux
|
||||||
|
|
||||||
|
# fastfetch. Will be disabled if above colorscript was chosen to install
|
||||||
|
fastfetch -c $HOME/.config/fastfetch/config-compact.jsonc
|
||||||
|
|
||||||
|
# Set-up icons for files/folders in terminal
|
||||||
|
alias ls='eza -a --icons'
|
||||||
|
alias ll='eza -al --icons'
|
||||||
|
alias lt='eza -a --tree --level=1 --icons'
|
||||||
|
|
||||||
|
HISTFILE=~/.zsh_history
|
||||||
|
HISTSIZE=10000
|
||||||
|
SAVEHIST=10000
|
||||||
|
setopt appendhistory
|
||||||
|
|
||||||
|
source "$HOME/.config/terminal/.setuprc"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue