linux: add rc syncing

This commit is contained in:
vas-dav 2024-04-24 23:44:22 +03:00
parent 7b100b69f8
commit e81c49d436
2 changed files with 17 additions and 3 deletions

View File

@ -2,8 +2,8 @@
# Download Znap, if it's not there yet. # Download Znap, if it's not there yet.
[[ -r ~/Repos/znap/znap.zsh ]] || [[ -r ~/Repos/znap/znap.zsh ]] ||
git clone --depth 1 -- \ git clone --depth 1 -- \
https://github.com/marlonrichert/zsh-snap.git ~/Repos/znap https://github.com/marlonrichert/zsh-snap.git /home/${USER}/Repos/znap
source ~/Repos/znap/znap.zsh # Start Znap source /home/${USER}/Repos/znap/znap.zsh # Start Znap
znap source marlonrichert/zsh-autocomplete znap source marlonrichert/zsh-autocomplete
znap source zshzoo/cd-ls znap source zshzoo/cd-ls
@ -13,6 +13,7 @@ alias c="clear"
alias l="ls" alias l="ls"
alias st="speedtest" alias st="speedtest"
alias ll="ls --long" alias ll="ls --long"
alias la="ls -la"
alias lr="ll --tree" alias lr="ll --tree"
alias tree="tree -ph" alias tree="tree -ph"
alias f="find ~/ -name" alias f="find ~/ -name"
@ -33,8 +34,12 @@ alias gch="git checkout"
alias gchb="gch -b" alias gchb="gch -b"
alias grp="git pull --rebase && git push" alias grp="git pull --rebase && git push"
export HISTSIZE=2000
export HISTFILE="$HOME/.history"
export SAVEHIST=$HISTSIZE
setopt hist_ignore_all_dups
#Prompt Settings: #Prompt Settings:
cd /Users/dave/Documents/Terminal
PROMPT="%(?.%F{green}√.%F{red}?%?)%f %B%F{yellow}%1~%f%b %# --> " PROMPT="%(?.%F{green}√.%F{red}?%?)%f %B%F{yellow}%1~%f%b %# --> "
c c

9
linux/scripts/sync_rc.sh Executable file
View File

@ -0,0 +1,9 @@
#! /bin/bash
repo_path=$(git rev-parse --show-toplevel)
zsh_rc=".zshrc"
vim_rc=".vimrc"
cp ${repo_path}/linux/${zsh_rc} /home/${USER}/${zsh_rc}
cp ${repo_path}/linux/${vim_rc} /home/${USER}/${vim_rc}