From 6c6401c140ae87cd210be34f436cd0a60b19dd99 Mon Sep 17 00:00:00 2001 From: Thomas Dehaeze Date: Sun, 3 Feb 2019 17:45:02 +0100 Subject: [PATCH] Change indentation of bash config --- dotfiles/bash.org | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/dotfiles/bash.org b/dotfiles/bash.org index 011b755..37234e9 100644 --- a/dotfiles/bash.org +++ b/dotfiles/bash.org @@ -106,47 +106,48 @@ bind '"\e[B": history-search-forward' ** Aliases *** Better defaults for some commands #+BEGIN_SRC conf -alias cp="cp -i" # confirm before overwriting something -alias df='df -h' # human-readable sizes -alias free='free -m' # show sizes in MB -alias mutt="neomutt" + alias cp="cp -i" # confirm before overwriting something + alias df='df -h' # human-readable sizes + alias free='free -m' # show sizes in MB + alias mutt="neomutt" #+END_SRC *** One letter aliases #+BEGIN_SRC conf -alias r="ranger" -alias t="tmux" -alias v="nvim" -alias sv='sudo -E nvim' -alias g="git" -alias m="neomutt" -alias y="yadm" -alias o="xdg-open" + alias r="ranger" + alias t="tmux" + alias v="nvim" + alias sv='sudo -E nvim' + alias g="git" + alias m="neomutt" + alias y="yadm" + alias o="xdg-open" #+END_SRC *** Magit #+BEGIN_SRC conf -alias magit="emacsclient -create-frame --alternate-editor=\"\" --eval '(magit-status)' ." + alias magit="emacsclient -create-frame --alternate-editor=\"\" --eval '(magit-status)'" #+END_SRC *** Vim-like #+BEGIN_SRC conf -alias :q=exit -alias :e=nvim + alias :q=exit + alias :e=nvim #+END_SRC *** Youtube #+BEGIN_SRC conf -alias yt="youtube-dl --add-metadata -ic" # Download video link -alias yta="yt -x -f bestaudio/best" # Download only audio + alias yt="youtube-dl --add-metadata -ic" # Download video link + alias yta="yt -x -f bestaudio/best" # Download only audio #+END_SRC *** Print each PATH entry on a separate line #+BEGIN_SRC conf -alias path='echo -e ${PATH//:/\\n}' + alias path='echo -e ${PATH//:/\\n}' #+END_SRC -*** TODO IP addresses - Remove the use of =dig= and =ifconfig= +*** TODO [#B] IP addresses - Remove the use of =dig= and =ifconfig= +Use =addr= instead #+BEGIN_SRC conf # alias ip="dig +short myip.opendns.com @resolver1.opendns.com" # alias localip="ip route get 8.8.4.4 | head -1 | awk '{print $7}'"