Browse Source

Deleted unnecessary dotfiles folder

Moved all files into root folder of repository and fixed set-from-git to reflect
that. I was able to get set-from-git to work without listing all the dotfiles,
but it didn't work as planned due to swp files, git folder and others; it's just
easier and cleaner to list out the files.
red-hat-laptop
Kevin Mok 7 years ago
parent
commit
4d1a456f84
  1. 9
      .bashrc
  2. 0
      .gitconfig
  3. 0
      .inputrc
  4. 2
      .vimrc
  5. 12
      aliases/.bash_aliases
  6. 0
      aliases/.git_aliases
  7. 0
      aliases/.laptop_aliases
  8. 0
      aliases/.pc_aliases
  9. 0
      aliases/.school_aliases
  10. 17
      dotfiles/set-from-git.sh
  11. 14
      set-from-git.sh
  12. 0
      termConfig

9
dotfiles/.bashrc → .bashrc

@ -96,14 +96,7 @@ fi
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
. ~/linux-config/aliases/.bash_aliases
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile

0
dotfiles/.gitconfig → .gitconfig

0
dotfiles/.inputrc → .inputrc

2
dotfiles/.vimrc → .vimrc

@ -12,6 +12,7 @@ set mouse=c
set clipboard=unnamedplus
autocmd VimResized * wincmd =
autocmd BufNewFile,BufRead .*_aliases set syntax=sh
" 'h/u3/c7/05/mokkar/.vim/plugged'
" '~/.vim/plugged'
@ -49,7 +50,6 @@ let g:UltiSnipsJumpForwardTrigger = "<tab>"
let g:UltiSnipsJumpBackwardTrigger = "<C-tab>"
call plug#end()
colorscheme gotham256
map <F3> :wa<CR>

12
dotfiles/aliases/.bash_aliases → aliases/.bash_aliases

@ -1,7 +1,7 @@
alias_folder="~/linux-config/dotfiles/aliases"
alias_folder="~/linux-config/aliases"
alias_type="school git pc laptop"
for type in $alias_type; do
. ~/linux-config/dotfiles/aliases/."$type"_aliases
. ~/linux-config/aliases/."$type"_aliases
done
# system
@ -29,10 +29,10 @@ vsnip() { vi ~/.vim/UltiSnips/"$1".snippets ; }
ok() { okular $1 ; }
# config
alias lc="d ~/linux-config/dotfiles"
alias lca="d ~/linux-config/dotfiles/aliases"
alias vb="vi ~/.bash_aliases"
alias vs="vi $alias_folder/.school_aliases"
alias lc="d ~/linux-config/"
alias lca="d ~/linux-config/aliases"
alias vb="vi \"$alias_folder\"/.bash_aliases"
alias vs="vi \"$alias_folder\"/.school_aliases"
alias vv="vi ~/.vimrc"
alias r=". ~/.bashrc"

0
dotfiles/aliases/.git_aliases → aliases/.git_aliases

0
dotfiles/aliases/.laptop_aliases → aliases/.laptop_aliases

0
dotfiles/aliases/.pc_aliases → aliases/.pc_aliases

0
dotfiles/aliases/.school_aliases → aliases/.school_aliases

17
dotfiles/set-from-git.sh

@ -1,17 +0,0 @@
dotDir=~/linux-config/dotfiles
# aliases
rm ~/.bash_aliases
ln -s $dotDir/aliases/.bash_aliases ~/.bash_aliases
# home
for file in *; do
if [[ $file = .* ]]; then
rm ~/$file
ln -s $dotDir/$file ~/$file
fi
done
# terminator
termDir=~/.config/terminator
rm $termDir/config
ln -s $dotDir/termConfig "$termDir"/config

14
set-from-git.sh

@ -0,0 +1,14 @@
dot_dir=~/linux-config
# dotfiles
dotfiles="bashrc gitconfig inputrc vimrc"
cd $dot_dir
for dotfile in $dotfiles; do
rm ~/.$dotfile
ln -s $dot_dir/.$dotfile ~/.$dotfile
done
# terminator
term_dir=~/.config/terminator
rm $term_dir/config
ln $dot_dir/termConfig "$term_dir"/config

0
dotfiles/termConfig → termConfig

Loading…
Cancel
Save