Compare commits
4 Commits
70c10dd25f
...
0a4e183bf5
Author | SHA1 | Date |
---|---|---|
Brieuc Dubois | 0a4e183bf5 | |
Brieuc Dubois | c415ec729f | |
Brieuc Dubois | 57e6943de3 | |
Brieuc Dubois | c9efd5a852 |
|
@ -203,7 +203,7 @@ ext xcf, X, flag f = gimp -- "$@"
|
|||
ext 7z, has 7z = 7z -p l "$@" | "$PAGER"
|
||||
# This requires atool
|
||||
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 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
|
@ -31,6 +31,7 @@ Host llnux-vpn
|
|||
Hostname 192.168.30.2
|
||||
Port 22
|
||||
User docker
|
||||
IdentityFile ~/.ssh/llnux
|
||||
|
||||
Host ingi
|
||||
Hostname studssh.info.ucl.ac.be
|
||||
|
|
|
@ -37,4 +37,24 @@ cat() {
|
|||
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue