summaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc41
1 files changed, 9 insertions, 32 deletions
diff --git a/.zshrc b/.zshrc
index 28416d3..20565f5 100644
--- a/.zshrc
+++ b/.zshrc
@@ -19,6 +19,10 @@ export GOPROXY=https://proxy.golang.com.cn,direct
export PATH="$HOME/.local/bin:$PATH"
# utilities
+mc () {
+ mkdir $1 && cd $1
+}
+
share () {
src=$1
if [[ $2 == '' ]]; then
@@ -46,11 +50,11 @@ umnt-cryfs () {
cryfs-unmount "$HOME/Vaults/$1"
}
-# ibus
-alias ib="ibus-daemon -d"
-export GTK_IM_MODULE=ibus
-export XMODIFIERS=@im=ibus
-export QT_IM_MODULE=ibus
+# make aliases accessible in sudo
+alias sudo="sudo "
+
+alias incognito="unset HISTFILE"
+alias proxy="export SOCKS5_PROXY=localhost:1080; export HTTP_PROXY=localhost:1081; export HTTPS_PROXY=localhost:1081"
# SSH
alias mrf="mosh root@fkfd.me"
@@ -91,33 +95,6 @@ alias je="journalctl -e"
alias what-the-fuck-just-happened="journalctl -e -b -1"
alias accel="killall kglobalaccel5 && kglobalaccel5&"
-# VG151
-alias gccf="gcc -O2 -Werror -Wpedantic -Wall -Wextra -Wconversion -Wvla -std=c11"
-gccc () {
- if [[ $1 == '-j' ]]; then
- gccf -o $2.out $2.c -D JOJ
- elif [[ $1 == '-d' ]]; then
- gccf -o $2.out $2.c -D DEBUG
- else
- gccf -o $1.out $1.c
- fi
-}
-
-alias g++f="g++ -Wall -Wextra -pedantic -Wvla -Werror -Wsign-conversion -std=c++17"
-g+++ () {
- if [[ $1 == '-j' ]]; then
- g++f -o ex$2.out ex$2.cpp -D JOJ
- elif [[ $1 == '-d' ]]; then
- g++f -o ex$2.out ex$2.cpp -D DEBUG
- else
- g++f -o ex$1.out ex$1.cpp
- fi
-}
-
-extar () {
- tar cf ex$1.tar ex$1.cpp homework.h
-}
-
# auto-generated by kdesrc-build initial setup: do not remove!
# Add the kdesrc-build directory to the path
# export PATH="$HOME/kde/src/kdesrc-build:$PATH"