diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-04-25 19:30:00 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-04-25 19:30:00 +0300 |
commit | d7ac50087899739d0a3935de2d806c33169ecb53 (patch) | |
tree | 6862aca78536ee620ecc4de0f54bad158c02e4fd | |
parent | add .minttyrc (diff) | |
download | linux-home-d7ac50087899739d0a3935de2d806c33169ecb53.tar.gz linux-home-d7ac50087899739d0a3935de2d806c33169ecb53.zip |
.adjust-permissions.sh: merge to .bashrc
-rwxr-xr-x | .adjust-permissions.sh | 3 | ||||
-rw-r--r-- | .bashrc | 4 |
2 files changed, 4 insertions, 3 deletions
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 @@ -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}'"'" |