aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.bashrc
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-04-25 19:30:00 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-04-25 19:30:00 +0300
commitd7ac50087899739d0a3935de2d806c33169ecb53 (patch)
tree6862aca78536ee620ecc4de0f54bad158c02e4fd /.bashrc
parentadd .minttyrc (diff)
downloadlinux-home-d7ac50087899739d0a3935de2d806c33169ecb53.tar.gz
linux-home-d7ac50087899739d0a3935de2d806c33169ecb53.zip
.adjust-permissions.sh: merge to .bashrc
Diffstat (limited to '')
-rw-r--r--.bashrc4
1 files changed, 4 insertions, 0 deletions
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}'"'"