Compare commits

...

4 Commits

Author SHA1 Message Date
Brieuc Dubois 0a4e183bf5 Use vim to open archive in ranger 2024-03-10 18:37:18 +01:00
Brieuc Dubois c415ec729f Fix ssh config 2024-03-10 18:36:49 +01:00
Brieuc Dubois 57e6943de3 vim plug 2024-03-10 18:36:26 +01:00
Brieuc Dubois c9efd5a852 Command to sync config 2024-03-10 18:35:10 +01:00
4 changed files with 2850 additions and 3 deletions

View File

@ -203,7 +203,7 @@ ext xcf, X, flag f = gimp -- "$@"
ext 7z, has 7z = 7z -p l "$@" | "$PAGER" ext 7z, has 7z = 7z -p l "$@" | "$PAGER"
# This requires atool # This requires atool
ext ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has atool = atool --list --each -- "$@" | "$PAGER" ext ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has atool = atool --list --each -- "$@" | "$PAGER"
ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has atool = atool --list --each -- "$@" | "$PAGER" ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has vim = vim "$@"
ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has atool = atool --extract --each -- "$@" ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has atool = atool --extract --each -- "$@"
ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has atool = atool --extract --each -- "$@" ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has atool = atool --extract --each -- "$@"

File diff suppressed because it is too large Load Diff

View File

@ -31,6 +31,7 @@ Host llnux-vpn
Hostname 192.168.30.2 Hostname 192.168.30.2
Port 22 Port 22
User docker User docker
IdentityFile ~/.ssh/llnux
Host ingi Host ingi
Hostname studssh.info.ucl.ac.be Hostname studssh.info.ucl.ac.be

View File

@ -37,4 +37,24 @@ cat() {
unsetopt BEEP unsetopt BEEP
alias beep="sh -c 'speaker-test -t sine -f 600 > /dev/null & sleep .5 && pkill speaker-test'"
SCONFIG_PATH="~/Documents/sync/.config"
alias config_sync="sh -c 'cd $SCONFIG_PATH/scripts && sudo ./sync.sh'"
config_cp() {
src_dir=$(realpath "$1")
dest_dir="$SCONFIG_PATH/root$src_dir"
num_files=$(find "$src_dir" -type f | wc -l)
read "REPLY?About to copy $num_files files from $src_dir -> $dest_dir. Proceed? (Y/n) "
if [[ $REPLY =~ ^[Yy]$ ]]
then
mkdir -p "$(dirname "$dest_dir")"
cp -R "$src_dir" "$dest_dir"
if [ $? -eq 0 ]
then
echo "OK"
fi
fi
}