update
This commit is contained in:
parent
7f784ff478
commit
2cd9c4fd7b
|
@ -0,0 +1,26 @@
|
|||
# Beware! This file is rewritten by htop when settings are changed in the interface.
|
||||
# The parser is also very primitive, and not human-friendly.
|
||||
fields=0 48 17 18 38 39 40 2 46 47 49 1
|
||||
sort_key=46
|
||||
sort_direction=1
|
||||
hide_threads=0
|
||||
hide_kernel_threads=1
|
||||
hide_userland_threads=1
|
||||
shadow_other_users=0
|
||||
show_thread_names=0
|
||||
show_program_path=1
|
||||
highlight_base_name=0
|
||||
highlight_megabytes=1
|
||||
highlight_threads=1
|
||||
tree_view=0
|
||||
header_margin=1
|
||||
detailed_cpu_time=0
|
||||
cpu_count_from_zero=0
|
||||
update_process_names=0
|
||||
account_guest_in_cpu_meter=0
|
||||
color_scheme=6
|
||||
delay=15
|
||||
left_meters=AllCPUs Memory Swap Blank
|
||||
left_meter_modes=1 1 1 2
|
||||
right_meters=Clock Tasks LoadAverage Uptime Hostname
|
||||
right_meter_modes=2 2 2 2 2
|
21
mybashrc
21
mybashrc
|
@ -101,6 +101,13 @@ ffmpeg_start_time() {
|
|||
fi
|
||||
}
|
||||
|
||||
find_duplicates() {
|
||||
if [ -z "$(command -v rdfind)" ]; then
|
||||
apt-get install rdfind -y
|
||||
else
|
||||
rdfind -dryrun true -ignoreempty false "$1"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
MAINTENANCE_APT() {
|
||||
|
@ -231,6 +238,15 @@ MAGENTO_UPGRADE() {
|
|||
|
||||
}
|
||||
|
||||
_WP_PERMISSIONS() {
|
||||
if [ -f ./wp-config.php ] || [ -f ../wp-config.php ]; then
|
||||
find . -type d -exec chmod 750 {} \;
|
||||
find . -type f -exec chmod 640 {} \;
|
||||
else
|
||||
echo "not a wordpress directory"
|
||||
fi
|
||||
}
|
||||
|
||||
alias transfer=transfer_vtbox_net
|
||||
alias magento-upgrade=MAGENTO_UPGRADE
|
||||
alias cheat=CHEAT_CHECK
|
||||
|
@ -270,6 +286,10 @@ alias la='ls -A'
|
|||
alias l='ls -CF'
|
||||
alias lh="stat -c '%A %a %n' ./*"
|
||||
alias ld='du -sh ./* | sort -h'
|
||||
alias ..="cd .."
|
||||
alias ...="cd ../.."
|
||||
alias ....="cd ../../.."
|
||||
alias .....="cd ../../../.."
|
||||
alias maintenance=MAINTENANCE_APT
|
||||
alias ee-maintenance=MAINTENANCE_APT
|
||||
alias ee-encrypt=encrypt_gpg
|
||||
|
@ -280,3 +300,4 @@ alias ee-ls=LIST_BY_SIZE
|
|||
alias tinc-up=SET_TINC_UP
|
||||
alias tinc-down=SET_TINC_DOWN
|
||||
alias ffmpeg-cut-start=ffmpeg_start_time
|
||||
alias wp-fix-perms=_WP_PERMISSIONS
|
||||
|
|
7
setup.sh
7
setup.sh
|
@ -33,6 +33,13 @@ else
|
|||
git -C $HOME/.mybashrc pull origin master
|
||||
fi
|
||||
|
||||
if [ -f $HOME/.config/htop/htoprc ]; then
|
||||
cp $HOME/.mybashrc/env/htoprc $HOME/.config/htop/htoprc -f
|
||||
else
|
||||
mkdir -p $HOME/.config/htop
|
||||
cp $HOME/.mybashrc/env/htoprc $HOME/.config/htop/htoprc -f
|
||||
fi
|
||||
|
||||
if [ -f $HOME/.bashrc ]; then
|
||||
check_mybashrc=$(grep "mybashrc" $HOME/.bashrc)
|
||||
if [ -z "$check_mybashrc" ]; then
|
||||
|
|
Loading…
Reference in New Issue