Change indentation of bash config
This commit is contained in:
parent
60aabb17af
commit
6c6401c140
@ -106,47 +106,48 @@ bind '"\e[B": history-search-forward'
|
|||||||
** Aliases
|
** Aliases
|
||||||
*** Better defaults for some commands
|
*** Better defaults for some commands
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
alias cp="cp -i" # confirm before overwriting something
|
alias cp="cp -i" # confirm before overwriting something
|
||||||
alias df='df -h' # human-readable sizes
|
alias df='df -h' # human-readable sizes
|
||||||
alias free='free -m' # show sizes in MB
|
alias free='free -m' # show sizes in MB
|
||||||
alias mutt="neomutt"
|
alias mutt="neomutt"
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
*** One letter aliases
|
*** One letter aliases
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
alias r="ranger"
|
alias r="ranger"
|
||||||
alias t="tmux"
|
alias t="tmux"
|
||||||
alias v="nvim"
|
alias v="nvim"
|
||||||
alias sv='sudo -E nvim'
|
alias sv='sudo -E nvim'
|
||||||
alias g="git"
|
alias g="git"
|
||||||
alias m="neomutt"
|
alias m="neomutt"
|
||||||
alias y="yadm"
|
alias y="yadm"
|
||||||
alias o="xdg-open"
|
alias o="xdg-open"
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
*** Magit
|
*** Magit
|
||||||
#+BEGIN_SRC conf
|
#+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
|
#+END_SRC
|
||||||
|
|
||||||
*** Vim-like
|
*** Vim-like
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
alias :q=exit
|
alias :q=exit
|
||||||
alias :e=nvim
|
alias :e=nvim
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
*** Youtube
|
*** Youtube
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
alias yt="youtube-dl --add-metadata -ic" # Download video link
|
alias yt="youtube-dl --add-metadata -ic" # Download video link
|
||||||
alias yta="yt -x -f bestaudio/best" # Download only audio
|
alias yta="yt -x -f bestaudio/best" # Download only audio
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
*** Print each PATH entry on a separate line
|
*** Print each PATH entry on a separate line
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
alias path='echo -e ${PATH//:/\\n}'
|
alias path='echo -e ${PATH//:/\\n}'
|
||||||
#+END_SRC
|
#+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
|
#+BEGIN_SRC conf
|
||||||
# alias ip="dig +short myip.opendns.com @resolver1.opendns.com"
|
# alias ip="dig +short myip.opendns.com @resolver1.opendns.com"
|
||||||
# alias localip="ip route get 8.8.4.4 | head -1 | awk '{print $7}'"
|
# alias localip="ip route get 8.8.4.4 | head -1 | awk '{print $7}'"
|
||||||
|
Loading…
Reference in New Issue
Block a user