aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.bashrc
diff options
context:
space:
mode:
Diffstat (limited to '.bashrc')
-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}'"'"