#!/bin/bash # these bash aliases are meant to be added in your user folder, # in a file named: .bash_aliases (with the dot at the beginning) # done for my blog http://www.cipherbliss.com # # load variables echo "bash custom aliases: load functions to sync files" source ~/Nextcloud/ressources/workflow_nextcloud/public_workflow/workflow_variables.sh ############################ current alias work="cd $www_folder/scripts/mapping_geojson_to_osm_tags" ########## lieux ########### alias dok="docker-compose" alias dc="docker-compose" # tuer tous les conteneurs docker function dckill() { docker container kill $(docker container ls -q) } alias gow="cd $WORKFLOW_PATH" # go to folder of nextcloud where i store my scripts ###### lieux locaux alias goj="ssh -p 3910 tykayn@bbb.liness.org" alias gopi="ssh pi@192.168.1.2" alias gofat="ssh tykayn@192.168.1.7" alias gowork="work" alias gowww="cd $www_folder" alias gox="ssh tykayn@proxmox.coussinet.org" alias gok="ssh debian@ns3247177.ip-164-132-173.eu" # hébergement kimsufi alias gonas="ssh $main_user@$IP_DU_NAS -p20522" alias gos="cd $stockage_syncable_folder" alias goa="ssh root@biliz.cluster.chapril.org" alias goad="cd /home/poule/encrypted/stockage-syncable/photos/a_dispatcher" alias goo="cd ~/Nextcloud/textes/orgmode" alias gown="cd ~/Nextcloud/ressources/workflow_nextcloud" alias gos="cd /home/poule/encrypted/stockage-syncable" alias gomob="ssh -6 tykayn@mobilizon.vm.openstreetmap.fr -i .ssh/id_rsa_spaceship" # go to mobilizon osm26 ################ personal info management - file management - PIM ######### alias gf="python $WORKFLOW_PATH/files_management/guessfilename_custom.py" alias rff="python $WORKFLOW_PATH/files_management/rename_photo_folder.py" alias m2a="move2archive --archivepath $stockage_syncable_folder/photos" alias ex="exiftool '-filename /dev/null then echo "nvm chargé" else export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion fi # ------------------- work stuff # export DOTNET_ROOT=$HOME/.dotnet # export PATH=$PATH:$HOME/.dotnet:$HOME/.dotnet/tools #!/bin/bash if [ "$(pwd)" = "/var/www/html/" ] || [ "$(pwd)" = "/var/www/html/*" ]; then echo "chargement de node version stable" nvm use stable fi #echo "loading zfs keys" #!/bin/bash # lancer le montage seulement si on est root if [ "$(id -u)" = 0 ]; then zfs load-key poule/encrypted zfs mount -a echo "root: partition ZFS déchiffrée et montée" fi