Updates
This commit is contained in:
@@ -2,24 +2,8 @@
|
||||
# Install pyenv
|
||||
- include_tasks: install-pyenv.yml
|
||||
|
||||
# Copy scripts to /usr/local/bin
|
||||
- name: Copying scripts to /usr/local/bin
|
||||
copy:
|
||||
src: "{{ item }}"
|
||||
dest: /usr/local/bin/
|
||||
owner: toor
|
||||
group: staff
|
||||
mode: 0775
|
||||
with_fileglob:
|
||||
- bin/*
|
||||
|
||||
# Copy profiles to /etc/profile.d/
|
||||
- name: Copying profiles to /etc/profile.d
|
||||
copy:
|
||||
src: "{{ item }}"
|
||||
dest: /etc/profile.d/
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0755
|
||||
with_fileglob:
|
||||
- profile.d/*
|
||||
- include_tasks: ../../../functions/copy_etc-profile.d.yml
|
||||
|
||||
# Copy scripts to /usr/local/bin
|
||||
- include_tasks: ../../../functions/copy_usr-local-bin.yml
|
||||
|
||||
10
functions/copy_etc-profile.d.yml
Normal file
10
functions/copy_etc-profile.d.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
# Copy profiles to /etc/profile.d/
|
||||
- name: Copying profiles to /etc/profile.d
|
||||
copy:
|
||||
src: "{{ item }}"
|
||||
dest: /etc/profile.d/
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0755
|
||||
with_fileglob:
|
||||
- profile.d/*
|
||||
10
functions/copy_usr-local-bin.yml
Normal file
10
functions/copy_usr-local-bin.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
# Copy scripts to /usr/local/bin
|
||||
- name: Copying scripts to /usr/local/bin
|
||||
copy:
|
||||
src: "{{ item }}"
|
||||
dest: /usr/local/bin/
|
||||
owner: toor
|
||||
group: staff
|
||||
mode: 0775
|
||||
with_fileglob:
|
||||
- bin/*
|
||||
40
server/bash-profile/files/profile.d/git_helpers.sh
Normal file
40
server/bash-profile/files/profile.d/git_helpers.sh
Normal file
@@ -0,0 +1,40 @@
|
||||
# mReschke git helpers
|
||||
|
||||
alias gits='git status'
|
||||
alias gitc='git config -l'
|
||||
|
||||
function ga() {
|
||||
git add .
|
||||
git commit -a -m "$1"
|
||||
}
|
||||
|
||||
function gap() {
|
||||
git add .
|
||||
git commit -a -m "$1"
|
||||
git push
|
||||
}
|
||||
|
||||
function gt() {
|
||||
git tag -a $1 -m "Tagged for $1 release"
|
||||
git push origin $1
|
||||
}
|
||||
|
||||
function git-merge-into() {
|
||||
into=$1
|
||||
branch=$(git branch | sed -n '/\* /s///p')
|
||||
if [ "$into" == "" ]; then
|
||||
echo "Usage: git-merge-into master"
|
||||
return
|
||||
elif [ "$branch" == "" ]; then
|
||||
echo "Please push your current '$branch' branch first"
|
||||
return
|
||||
fi
|
||||
pushed=$(git status | grep -c 'nothing to commit')
|
||||
if [ $pushed -eq 1 ]; then
|
||||
read -r -p "You are about to merge $branch into $into. Are you sure? " response
|
||||
if [ "$response" == "y" ]; then
|
||||
git checkout $into && git merge $branch && git push && git checkout $branch
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
rsync -vaP --delete linstore:/store/data/manup/nwq/vimrc/source/vimrc-current/etc/vim/ ./vim
|
||||
rsync -vaP --delete --exclude .git linstore:/store/data/manup/nwq/vimrc/source/vimrc-current/etc/vim/ ./vim
|
||||
find ./vim -type d -name '.git' -exec rm -rf {} \;
|
||||
|
||||
@@ -1,25 +1,9 @@
|
||||
---
|
||||
# Copy profiles to /etc/profile.d/
|
||||
- name: Copying profiles to /etc/profile.d
|
||||
copy:
|
||||
src: "{{ item }}"
|
||||
dest: /etc/profile.d/
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0755
|
||||
with_fileglob:
|
||||
- profile.d/*
|
||||
- include_tasks: ../../../functions/copy_etc-profile.d.yml
|
||||
|
||||
# Copy scripts to /usr/local/bin
|
||||
- name: Copying scripts to /usr/local/bin
|
||||
copy:
|
||||
src: "{{ item }}"
|
||||
dest: /usr/local/bin/
|
||||
owner: toor
|
||||
group: staff
|
||||
mode: 0775
|
||||
with_fileglob:
|
||||
- bin/*
|
||||
- include_tasks: ../../../functions/copy_usr-local-bin.yml
|
||||
|
||||
# Rsync /etc/vim
|
||||
- name: Synchronizing /etc/vim
|
||||
|
||||
Reference in New Issue
Block a user