From 95cc4eaef4aa6402cd8398f8381757fc4635773c Mon Sep 17 00:00:00 2001 From: ViktorBarzin Date: Mon, 5 Feb 2018 15:23:19 +0000 Subject: [PATCH] Add new stuff --- .bash_aliases | 8 +++++++- .zshrc | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.bash_aliases b/.bash_aliases index 54b35f0..8ea28c2 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -21,7 +21,7 @@ alias gpull='git pull origin master' alias checkcpu='modprobe msr; rdmsr -a 0x19a' alias fixcpu='wrmsr -a 0x19a 0x0' -alias daimi="grep -rnw $2 $1" +alias daimi="grep -rnwi $2 $1" alias muzika='xdg-open /home/viktor/Documents/Music/njoy.m3u' alias randomstr="tr -dc a-z1-4 50' | tr 3-4 ' ' | sed 's/^ *//' | cat -s | sed 's/ / /g' |fmt" alias battery="upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -E 'time to empty|state|to\ full|percentage'" @@ -232,3 +232,9 @@ alias hosts="sudo vim /etc/hosts" -bufsize $CBR "rtmp://$SERVER.twitch.tv/app/$STREAM_KEY" } alias gg="xset dpms force off" + +function hib(){ + # sudo swapon /dev/kubuntu-vg/swap_1 2&>/dev/null + sudo systemctl hibernate + # sudo swapoff /dev/kubuntu-vg/swap_1 2&>/dev/null +} diff --git a/.zshrc b/.zshrc index a160bac..8d4b72a 100644 --- a/.zshrc +++ b/.zshrc @@ -126,3 +126,6 @@ export LESS_TERMCAP_se=$'\e[0m' export LESS_TERMCAP_so=$'\e[01;33m' export LESS_TERMCAP_ue=$'\e[0m' export LESS_TERMCAP_us=$'\e[1;4;31m' + +# Enable extended glob +setopt extendedglob