aboutsummaryrefslogtreecommitdiffstatshomepage
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
parentadd .minttyrc (diff)
downloadlinux-home-d7ac50087899739d0a3935de2d806c33169ecb53.tar.gz
linux-home-d7ac50087899739d0a3935de2d806c33169ecb53.zip
.adjust-permissions.sh: merge to .bashrc
Diffstat (limited to '')
-rwxr-xr-x.adjust-permissions.sh3
-rw-r--r--.bashrc4
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
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}'"'"