linux: add rc syncing
This commit is contained in:
parent
7b100b69f8
commit
e81c49d436
11
linux/.zshrc
11
linux/.zshrc
@ -2,8 +2,8 @@
|
||||
# Download Znap, if it's not there yet.
|
||||
[[ -r ~/Repos/znap/znap.zsh ]] ||
|
||||
git clone --depth 1 -- \
|
||||
https://github.com/marlonrichert/zsh-snap.git ~/Repos/znap
|
||||
source ~/Repos/znap/znap.zsh # Start Znap
|
||||
https://github.com/marlonrichert/zsh-snap.git /home/${USER}/Repos/znap
|
||||
source /home/${USER}/Repos/znap/znap.zsh # Start Znap
|
||||
|
||||
znap source marlonrichert/zsh-autocomplete
|
||||
znap source zshzoo/cd-ls
|
||||
@ -13,6 +13,7 @@ alias c="clear"
|
||||
alias l="ls"
|
||||
alias st="speedtest"
|
||||
alias ll="ls --long"
|
||||
alias la="ls -la"
|
||||
alias lr="ll --tree"
|
||||
alias tree="tree -ph"
|
||||
alias f="find ~/ -name"
|
||||
@ -33,8 +34,12 @@ alias gch="git checkout"
|
||||
alias gchb="gch -b"
|
||||
alias grp="git pull --rebase && git push"
|
||||
|
||||
export HISTSIZE=2000
|
||||
export HISTFILE="$HOME/.history"
|
||||
export SAVEHIST=$HISTSIZE
|
||||
setopt hist_ignore_all_dups
|
||||
|
||||
#Prompt Settings:
|
||||
cd /Users/dave/Documents/Terminal
|
||||
PROMPT="%(?.%F{green}√.%F{red}?%?)%f %B%F{yellow}%1~%f%b %# --> "
|
||||
c
|
||||
|
||||
|
||||
9
linux/scripts/sync_rc.sh
Executable file
9
linux/scripts/sync_rc.sh
Executable 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}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user