4259 links
  • Arnaud's links
  • Home
  • RSS Feed
  • Tag cloud
  • Login
search: tag:bashrc — newest first
  • Note: Learn a command on each new shell open.

    echo 'man $(ls /usr/bin | shuf -n 1)| sed -n "/^NAME/ { n;p;q }"' >> ~/.bashrc # Learn a command on each new shell open.

    via @climagic

    February 10, 2016 - permalink - https://links.infomee.fr/shaare/kL3CzA
    bashrc man
  • Marks

    Je ne sais plus ou j'ai vu ça, je ne retrouve plus le lien donc je me le remets ici au cas où

    Marks

    export MARKPATH=$HOME/.marks
    function jump {
    cd -P "$MARKPATH/$1" 2>/dev/null || echo "No such mark: $1"
    }
    function mark {
    mkdir -p "$MARKPATH"; ln -s "$(pwd)" "$MARKPATH/$1"
    }
    function unmark {
    rm -i "$MARKPATH/$1"
    }
    function marks {
    ls -l "$MARKPATH" | sed 's/ / /g' | cut -d' ' -f9- | sed 's/ -/\t-/g' && echo
    }

    June 12, 2015 - permalink - https://links.infomee.fr/shaare/XYagKw
    bash bashrc mark
  • Afficher l'original d'un fichier qui provient d'un package sous debian en une commande

    à mettre dans son bashrc

    showOriginal() {

    argument = complete path to a file

    output original file content

    packageName=$(dpkg -S $1|cut -d':' -f1)
    tmpdir="/tmp/showOriginal-$packageName-$(date +%s)"
    mkdir $tmpdir
    cd $tmpir
    apt-get download $packageName > /dev/null
    dpkg -x *.deb $tmpdir
    cat ${tmpdir}$1
    cd - >/dev/null
    rm -rf $tmpdir
    }

    September 26, 2014 - permalink - https://links.infomee.fr/shaare/tdQ_tA
    bash bashrc script
  • Extract most know archives with one command | alias.sh
    February 4, 2013 - permalink - http://alias.sh/extract-most-know-archives-one-command
    alias bash bashrc linux
  • .bashrc not being executed, why?

    Pourquoi le bashrc ne s'execute pas

    July 13, 2012 - permalink - http://www.linuxquestions.org/questions/linux-newbie-8/bashrc-not-being-executed-why-127676/
    bashrc linux shell
  • Bashrc collaboratif - Linux Attitude
    July 13, 2012 - permalink - http://linux-attitude.fr/post/bashrc-collaboratif
    bashrc shell
  • Appliquer les modifications du .bashrc ou .profile - www.GNUComputing.Com (U|Li)nux

    Commande source pour appliquer les changements d'un .bashrc ou .profile sans relancer la session

    December 7, 2011 - permalink - http://www.gnucomputing.com/astux/appliquer-les-modifications-du-bashrc-ou-profile.html
    appliquer bashrc profile