diff --git a/.dotfiles/.zshrc b/.dotfiles/.zshrc new file mode 100644 index 0000000..239d85e --- /dev/null +++ b/.dotfiles/.zshrc @@ -0,0 +1,21 @@ +HISTFILE=~/.zsh_history +HISTSIZE=99999999 +SAVEHIST=99999999 +setopt appendhistory autocd extendedglob nomatch notify +unsetopt beep +bindkey -e +zstyle :compinstall filename '~/.zshrc' + +autoload -Uz compinit +compinit + +# Text Editor +alias emacs='emacs -nw' +alias e='emacs -nw' +alias i='sudo dnf install' +alias d='sudo dnf' +alias c='git commit -m ' +alias g='git' +alias gp='git pull' + +export TERM=linux diff --git a/scripts/dotfiles.sh b/scripts/dotfiles.sh new file mode 100644 index 0000000..033e3bc --- /dev/null +++ b/scripts/dotfiles.sh @@ -0,0 +1,16 @@ +#! /bin/bash + +# source backup sudo +files=(~/.zshrc ~/.config/.dotfiles/.zshrc 'n') + +for (( i=0; i<${#files[@]} ; i+=3 )) ; do + if [[ $* == *-b* ]]; then + cp ${files[i]} ${files[i+1]} + else + if [[ ${files[i+2]} == *'y'* ]]; then + sudo cp ${files[i+1]} ${files[i]} + else + cp ${files[i+1]} ${files[i]} + fi + fi +done