added spots for custom alias, completion and function scripts for bash magic, more work on install
This commit is contained in:
10
bash/bash_aliases.d/git.sh
Normal file
10
bash/bash_aliases.d/git.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
alias gs='git status'
|
||||
alias ga='git add'
|
||||
alias gu='git add -u'
|
||||
alias gc='git commit -v'
|
||||
alias gca='git commit -v -a'
|
||||
alias gp='git push'
|
||||
alias gpl='git pull'
|
||||
alias gme='git merge'
|
||||
alias gco='git checkout'
|
||||
alias gd='git diff'
|
||||
3
bash/bash_aliases.d/mongo.sh
Normal file
3
bash/bash_aliases.d/mongo.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
alias mon='mongo'
|
||||
alias mond='mongod -f ~/mongod.conf'
|
||||
alias monr='mond --repair'
|
||||
0
bash/bash_completion.d/empty
Normal file
0
bash/bash_completion.d/empty
Normal file
0
bash/bash_functions.d/empty
Normal file
0
bash/bash_functions.d/empty
Normal file
@@ -26,7 +26,7 @@ ROOT=`pwd`
|
||||
#clone repo
|
||||
$GIT clone https://github.com/Knewton/bash_magic.git bash/bash_magic
|
||||
|
||||
#install
|
||||
#install select bash magic scripts
|
||||
cd "bash/bash_magic"
|
||||
mkdir "${HOME}/.bash_aliases.d" "${HOME}/.bash_completion.d" "${HOME}/.bash_functions.d"
|
||||
cd "bash_aliases.d"
|
||||
@@ -36,6 +36,12 @@ ln -s etc.sh "${HOME}/.bash_completion.d"
|
||||
cd "../bash_functions.d"
|
||||
ln -s completion.sh extract.sh lsbytes.sh lsnew.sh vim.sh "${HOME}/.bash_functions.d"
|
||||
cd "${ROOT}"
|
||||
#install custom bash scripts
|
||||
ln -s "bash/bash_aliases.d/*.sh" "${HOME}/.bash_aliases.d"
|
||||
ln -s "bash/bash_completion.d/*.sh" "${HOME}/.bash_completion.d"
|
||||
ln -s "bash/bash_functions.d/*.sh" "${HOME}/.bash_functions.d"
|
||||
#set up the bashrc file
|
||||
cat "bash/bash_magic/bashrc" >> ${HOME}/.bashrc
|
||||
|
||||
###
|
||||
# vim
|
||||
|
||||
Reference in New Issue
Block a user