From 1bade6a5ca4ef773ee488cd1c71b3eba5da4ccfe Mon Sep 17 00:00:00 2001 From: Oscar Rodriguez Date: Mon, 11 May 2020 04:56:26 -0400 Subject: [PATCH] Update importante --- .bashrc | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/.bashrc b/.bashrc index 22303f3..68068ff 100644 --- a/.bashrc +++ b/.bashrc @@ -116,7 +116,8 @@ if ! shopt -oq posix; then . /etc/bash_completion fi fi - +# vi mode in the shell +set -o vi # transform md anotations into PDF mdpdf () { pandoc "$1".md -t beamer -o "$1".pdf ;} #byebye for shutdown @@ -127,20 +128,27 @@ metadata () { echo "Salida del comando stat" ; stat "$1" ; echo "Salida del coma alias ccat='highlight --out-format=ansi' # activates the autocd mode shopt -s autocd -# examples from tldr -alias example='tldr' # wifi available alias wifi='nmcli d wifi' # personalized ps1 export PS1="\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\n\$" alias autowal='wal --iterative -i /usr/share/backgrounds/ > /dev/null' #figlet de mi nombre -#whoami | figlet Josuer08 | lolcat -F 0.25; -whoami | figlet Josuer08 | lolcat; +whoami | figlet Josuer08 | lolcat -F 0.25; +#whoami | figlet Josuer08 | lolcat; # agragando el comando gitdotfiles para manejar los dotfiles alias gitdotfiles='/usr/bin/git --git-dir=$HOME/Documents/dotfiles/ --work-tree=$HOME'; - +function cdls() { + DIR="$*"; + # if no DIR given, go home + if [ $# -lt 1 ]; then + DIR=$HOME; + fi; + builtin cd "${DIR}" && \ + # use your preferred ls command + ls -F --color=auto +} -- 2.25.1