From 7b3d0901b24851295c0c59c3a96d622054b1f18e Mon Sep 17 00:00:00 2001 From: Nicole Tietz-Sokolskaya Date: Fri, 11 Nov 2016 17:07:43 -0500 Subject: [PATCH 1/3] Commenting out some things while I set up the new machine. Should delete them eventually. --- config.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/config.sh b/config.sh index b7afc13..92c0d68 100755 --- a/config.sh +++ b/config.sh @@ -10,13 +10,13 @@ ln -s ~/Code/config/bashrc .bashrc rm -f .screenrc ln -s ~/Code/config/screenrc .screenrc -rm -f .vimrc -ln -s ~/Code/config/vimrc .vimrc +#rm -f .vimrc +#ln -s ~/Code/config/vimrc .vimrc # set up the default branch for git -git config --global branch.master.remote origin -git config --global branch.master.merge refs/heads/master +#git config --global branch.master.remote origin +#git config --global branch.master.merge refs/heads/master -mkdir -f ~/.vim -git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim +#mkdir -f ~/.vim +#git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim From 666d82606fc8298c12374634ed2de897fd782b35 Mon Sep 17 00:00:00 2001 From: Nicole Tietz-Sokolskaya Date: Fri, 11 Nov 2016 20:02:10 -0500 Subject: [PATCH 2/3] Cleaning up profile, removing old stuff. --- profile | 53 ++--------------------------------------------------- 1 file changed, 2 insertions(+), 51 deletions(-) diff --git a/profile b/profile index f604f6e..11d4c98 100644 --- a/profile +++ b/profile @@ -29,16 +29,7 @@ set_prompt() { set_prompt # makes ls print pretty -unamestr=`uname` -if [[ "$unamestr" == 'Linux' ]]; then - alias ls="ls --color=auto" -elif [[ "$unamestr" == 'Darwin' ]]; then - alias ls="ls -G" -fi - -if [[ "$unamestr" == 'Darwin' ]]; then - alias update_terminal_cwd=: -fi +alias ls="ls --color=auto" # default editor export EDITOR=vim @@ -55,49 +46,9 @@ if `tty -s`; then mesg n fi -# set the path for Hadoop -# export HADOOP_VERSION=hadoop-1.0.1 -# export HADOOP=~/hadoop/$HADOOP_VERSION -# export PATH=$PATH:$HADOOP/bin -export JAVA_HOME=/usr - -# add the rubygem location -#export PATH=$PATH:/var/lib/gems/1.8/bin/ -#export PATH=~/.rbenv/bin:~/.rbenv/shims:$PATH -## -# Your previous /Users/nicholas/.profile file was backed up as /Users/nicholas/.profile.macports-saved_2012-06-19_at_15:40:04 -## - -# MacPorts Installer addition on 2012-06-19_at_15:40:04: adding an appropriate PATH variable for use with MacPorts. -export PATH=/opt/local/bin:/opt/local/sbin:$PATH -# Finished adapting your PATH environment variable for use with MacPorts. -#export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/ -#export JAVA_HOME="$(/usr/libexec/java_home)" -#export JAVA_HOME=$(readlink -f /usr/bin/java | sed "s:bin/java::") - -#### ALIAS SECTION - -# servers -alias sshneptune="ssh ntietz@neptune.cs.kent.edu" -alias sshposeidon="ssh ntietz@poseidon.cs.kent.edu" -alias sshntietz="ssh nicholas@ntietz.com" -alias sshacm="ssh ntietz@acm.cs.kent.edu" - -# commands -alias cls='clear && ls' -alias doit='sudo $(history -p !-1)' -alias f="pushd" -alias b="popd" -alias screen_pwd='screen -X eval "chdir $PWD"' alias href="history -a; history -c; history -r" -macos_magic_fix() { - killall Dock -} - -export PATH=$PATH:~/.bin:/Developer/NVIDIA/CUDA-7.0/bin/ - +export PATH=$PATH:~/.bin export HISTCONTROL=ignorespace - export TERM=xterm-256color From adddcf777b2f0d4a9b2e179c2e1d1f2c56e508c0 Mon Sep 17 00:00:00 2001 From: Nicole Tietz-Sokolskaya Date: Sat, 3 Dec 2016 12:42:44 -0500 Subject: [PATCH 3/3] Added a function to restart the network manager to deal with an issue on the Dell XPS 13. --- profile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/profile b/profile index 11d4c98..1886204 100644 --- a/profile +++ b/profile @@ -25,6 +25,10 @@ set_prompt() { PS1="${TITLEBAR}$BLUE[\t]\`$FAILURE_COLOR\` \u@\h> $NO_COLOR" } +restart_network_manager() { + sudo service network-manager restart +} + # sets the PS1 prompt set_prompt