Created
December 22, 2017 05:03
-
-
Save amoshyc/452372c1bbb660e41b72688f78e95265 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .bashrc | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
# Uncomment the following line if you don't like systemctl's auto-paging feature: | |
# export SYSTEMD_PAGER= | |
# User specific aliases and functions | |
export EDITOR=code | |
export VISUAL=code | |
bind "TAB:menu-complete" | |
bind "set show-all-if-ambiguous on" | |
bind "set menu-complete-display-prefix on" | |
alias myg++="g++ -Wall -Wshadow -std=c++14" | |
alias mytxt=mytxt_func | |
alias mymp3="youtube-dl -o '%(playlist_index)s. %(title)s.%(ext)s' -x --audio-format 'mp3' --audio-quality 0 -i" | |
alias activ="source ./venv/bin/activate" | |
alias tocsie0="ssh [email protected]" | |
alias tocsie1="ssh [email protected]" | |
alias tocsie2="ssh [email protected]" | |
alias tolinux="ssh [email protected]" | |
alias tom="ssh [email protected]" # to master | |
alias mm1="sshfs -p 2222 [email protected]:./ ./remote" | |
alias mm2="sshfs -p 2223 [email protected]:./ ./remote" | |
alias mm3="sshfs -p 2224 [email protected]:./ ./remote" | |
alias unmm="fusermount -u ./remote" # unmount master | |
alias to1="ssh -p 2222 [email protected]" | |
alias to2="ssh -p 2223 [email protected]" | |
alias to3="ssh -p 2224 [email protected]" | |
alias to110="xfreerdp -size 1600x900 -u amoshyc -v 140.123.97.110" | |
alias to111="xfreerdp -size 1600x900 -u maniac -v 140.123.97.111" | |
alias condaOn='export PATH="/home/amoshyc/miniconda3/bin:$PATH"' | |
mytxt_func() { | |
iconv -c -f gbk -t utf-8 $1 -o _tt.txt | |
opencc -c s2tw.json -i _tt.txt -o $2 | |
rm _tt.txt | |
} | |
# added by Miniconda3 4.3.21 installer | |
# export PATH="/home/amoshyc/miniconda3/bin:$PATH" | |
# alias python="/usr/bin/python" | |
# alias python3="/usr/bin/python3" | |
export GOROOT=$HOME/go | |
export GOPATH=$HOME/workspace/go | |
export PATH=$GOROOT/bin:$PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment