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.
This commit is contained in:
@@ -96,14 +96,7 @@ fi
|
|||||||
# sleep 10; alert
|
# 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 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.
|
. ~/linux-config/aliases/.bash_aliases
|
||||||
# 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
|
|
||||||
|
|
||||||
# enable programmable completion features (you don't need to enable
|
# enable programmable completion features (you don't need to enable
|
||||||
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
|
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
|
||||||
@@ -12,6 +12,7 @@ set mouse=c
|
|||||||
set clipboard=unnamedplus
|
set clipboard=unnamedplus
|
||||||
|
|
||||||
autocmd VimResized * wincmd =
|
autocmd VimResized * wincmd =
|
||||||
|
autocmd BufNewFile,BufRead .*_aliases set syntax=sh
|
||||||
|
|
||||||
" 'h/u3/c7/05/mokkar/.vim/plugged'
|
" 'h/u3/c7/05/mokkar/.vim/plugged'
|
||||||
" '~/.vim/plugged'
|
" '~/.vim/plugged'
|
||||||
@@ -49,7 +50,6 @@ let g:UltiSnipsJumpForwardTrigger = "<tab>"
|
|||||||
let g:UltiSnipsJumpBackwardTrigger = "<C-tab>"
|
let g:UltiSnipsJumpBackwardTrigger = "<C-tab>"
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
colorscheme gotham256
|
colorscheme gotham256
|
||||||
|
|
||||||
map <F3> :wa<CR>
|
map <F3> :wa<CR>
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
alias_folder="~/linux-config/dotfiles/aliases"
|
alias_folder="~/linux-config/aliases"
|
||||||
alias_type="school git pc laptop"
|
alias_type="school git pc laptop"
|
||||||
for type in $alias_type; do
|
for type in $alias_type; do
|
||||||
. ~/linux-config/dotfiles/aliases/."$type"_aliases
|
. ~/linux-config/aliases/."$type"_aliases
|
||||||
done
|
done
|
||||||
|
|
||||||
# system
|
# system
|
||||||
@@ -29,10 +29,10 @@ vsnip() { vi ~/.vim/UltiSnips/"$1".snippets ; }
|
|||||||
ok() { okular $1 ; }
|
ok() { okular $1 ; }
|
||||||
|
|
||||||
# config
|
# config
|
||||||
alias lc="d ~/linux-config/dotfiles"
|
alias lc="d ~/linux-config/"
|
||||||
alias lca="d ~/linux-config/dotfiles/aliases"
|
alias lca="d ~/linux-config/aliases"
|
||||||
alias vb="vi ~/.bash_aliases"
|
alias vb="vi \"$alias_folder\"/.bash_aliases"
|
||||||
alias vs="vi $alias_folder/.school_aliases"
|
alias vs="vi \"$alias_folder\"/.school_aliases"
|
||||||
alias vv="vi ~/.vimrc"
|
alias vv="vi ~/.vimrc"
|
||||||
alias r=". ~/.bashrc"
|
alias r=". ~/.bashrc"
|
||||||
|
|
||||||
@@ -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
Executable file
14
set-from-git.sh
Executable file
@@ -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
|
||||||
Reference in New Issue
Block a user