Sfoglia il codice sorgente

bashrc: add func mkcdd

pull/1/head
10sr 11 anni fa
parent
commit
f45cdaf685
1 ha cambiato i file con 11 aggiunte e 1 eliminazioni
  1. +11
    -1
      bashrc

+ 11
- 1
bashrc Vedi File

@@ -547,7 +547,11 @@ tb(){
}

mkcd(){
if test -d "$1"
if test -z "$1"
then
echo "mkcd: usage: mkcd <dir>"
return 1
elif test -d "$1"
then
echo "Dir \"$1\" already exists."
else
@@ -557,6 +561,12 @@ mkcd(){
cd "$1"
}

mkcdd(){
# make and change date directory
_d=`date +%Y%m%d-%H%M%S`
mkcd "$_d"
}

if test -n "$TMUX" && null type reattach-to-user-namespace
then
alias pbpaste="reattach-to-user-namespace pbpaste"


Caricamento…
Annulla
Salva