From d7ac50087899739d0a3935de2d806c33169ecb53 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 25 Apr 2016 19:30:00 +0300 Subject: .adjust-permissions.sh: merge to .bashrc --- .adjust-permissions.sh | 3 --- .bashrc | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) delete mode 100755 .adjust-permissions.sh diff --git a/.adjust-permissions.sh b/.adjust-permissions.sh deleted file mode 100755 index d087f6f..0000000 --- a/.adjust-permissions.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash - -git ls-tree HEAD | cut -f 2 | xargs chmod 0600 diff --git a/.bashrc b/.bashrc index 331dbc3..954a282 100644 --- a/.bashrc +++ b/.bashrc @@ -207,6 +207,10 @@ nwx_dev=172.28.12.149 nwx_dev2=172.28.19.60 nwx_dev3=172.28.19.61 +adjust_dotfiles_permissions() { + pushd ~ && git ls-tree HEAD | cut -f 2 | xargs chmod 0600 && popd +} + alias trim_trailing_whitespace='sed --binary --in-place '"'"'s/[[:blank:]]*\(\r\?\)$/\1/'"'" alias trim_trailing_dos_newlines='sed --binary --in-place -e :a -e '"'"'/^\(\r\n\)*\r$/{$d;N;ba}'"'" alias trim_trailing_unix_newlines='sed --binary --in-place -e :a -e '"'"'/^\n*$/{$d;N;ba}'"'" -- cgit v1.2.3