Browse Source

Merge from lab.

red-hat-laptop
Kevin Mok 7 years ago
parent
commit
e6e6ce9e12
  1. 36
      dotfiles/.bash_aliases
  2. 6
      dotfiles/.bashrc
  3. 7
      dotfiles/termConfig

36
dotfiles/.bash_aliases

@ -6,15 +6,18 @@ if [ -d "/h/u3/c7/" ]; then
fi fi
# system # system
alias c="clear"
alias l='ls -a'
c() { cd $@ && l ; }
alias ll='ls -alF'
alias cs='printf "\033c"'
shopt -s dotglob shopt -s dotglob
alias reb="sudo shutdown -r 0" alias reb="sudo shutdown -r 0"
alias sd="sudo shutdown 0" alias sd="sudo shutdown 0"
alias s="systemctl suspend" alias s="systemctl suspend"
# directories # directories
alias cdr="cd ~/../../"
alias cdd="cd ~/Downloads"
alias cdr="c ~/../../"
alias cdd="c ~/Downloads"
if $in_lab; then if $in_lab; then
alias mt="okular ~/Downloads/Textbook.pdf" alias mt="okular ~/Downloads/Textbook.pdf"
@ -29,19 +32,18 @@ if $in_lab; then
else else
alias mt="okular ~/Documents/School/221/Textbook.pdf" alias mt="okular ~/Documents/School/221/Textbook.pdf"
alias rcg="cd ~/Documents/coding/random-color-generator"
alias rcg="c ~/Documents/coding/random-color-generator"
# 207 # 207
alias 207r="cd ~/Documents/School/207/mokkar/"
alias a2="cd ~/Documents/School/207/mokkar/a2/src/farmyard"
alias a2n="vi ~/Documents/School/207/mokkar/a2/notes.txt"
alias 7r="c ~/Documents/School/207/group_0485"
alias ph1="c ~/Documents/School/207/group_0485/phase1"
# 221 # 221
alias 221="cd ~/Documents/School/221"
alias 221="c ~/Documents/School/221"
fi fi
# config # config
alias lc="cd ~/linux-config"
alias lc="c ~/linux-config"
alias vb="vi ~/.bash_aliases" alias vb="vi ~/.bash_aliases"
alias vv="vi ~/.vimrc" alias vv="vi ~/.vimrc"
alias rba=". ~/.bashrc" alias rba=". ~/.bashrc"
@ -57,11 +59,19 @@ alias gai="git add .gitignore"
alias gd="git diff" alias gd="git diff"
alias gdc="git diff --cached" alias gdc="git diff --cached"
alias gstore="git config credential.helper store" alias gstore="git config credential.helper store"
<<<<<<< HEAD
gc(){ gc(){
git commit -m "$1" git commit -m "$1"
} }
alias gcm="git commit" alias gcm="git commit"
=======
gc(){ git commit -m "$1" ; }
alias gcm="git commit"
alias gl="git log"
alias gsl="git shortlog"
>>>>>>> 0feebeeb849fd3764551b913a2cfd5f71f51b579
# idea # idea
alias jh="echo $JAVA_HOME" alias jh="echo $JAVA_HOME"
alias jv="java -version" alias jv="java -version"
@ -69,11 +79,7 @@ alias jv="java -version"
# alias idea=". ~/usr/idea-IC-172.4343.14/bin/idea.sh" # alias idea=". ~/usr/idea-IC-172.4343.14/bin/idea.sh"
# alias jf="export JAVA_HOME=/home/kevin/usr/jdk1.8.0_151 && export PATH=$JAVA_HOME/bin:$PATH" # alias jf="export JAVA_HOME=/home/kevin/usr/jdk1.8.0_151 && export PATH=$JAVA_HOME/bin:$PATH"
g(){
gvim $1
}
# g(){ gvim $1 ; }
rs(){
redshift -O $(($1 * 1000))
}
rs(){ redshift -O $(($1 * 1000)) ; }
alias rx="redshift -x" alias rx="redshift -x"

6
dotfiles/.bashrc

@ -91,10 +91,6 @@ fi
# colored GCC warnings and errors # colored GCC warnings and errors
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' #export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
# some more ls aliases
alias ll='ls -alF'
alias l='ls -a'
# Add an "alert" alias for long running commands. Use like so: # Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert # sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
@ -186,3 +182,5 @@ source "$BASH_IT"/bash_it.sh
# export PATH=$JAVA_HOME/bin:$PATH # export PATH=$JAVA_HOME/bin:$PATH
# export IDEA_VM_OPTION="/home/kevin/usr/idea-IC-172.4343.14/bin/idea64.vmoptions" # export IDEA_VM_OPTION="/home/kevin/usr/idea-IC-172.4343.14/bin/idea64.vmoptions"
# source /etc/environment # source /etc/environment
export QSYS_ROOTDIR="/home/kevin/usr/altera_lite/16.0/quartus/sopc_builder/bin"

7
dotfiles/termConfig

@ -1,8 +1,13 @@
[global_config] [global_config]
inactive_color_offset = 1.0
title_font = Noto Sans 10 title_font = Noto Sans 10
title_transmit_bg_color = "#3d3d3d" title_transmit_bg_color = "#3d3d3d"
[keybindings] [keybindings]
close_term = <Primary><Shift>w
close_term = <Primary>w
cycle_next = <Shift>Tab
new_tab = <Primary>t
split_horiz = <Primary><Shift>e
split_vert = <Primary><Shift>o
[layouts] [layouts]
[[default]] [[default]]
[[[child1]]] [[[child1]]]

Loading…
Cancel
Save