# ~/.bash_profile # _ _ __ _ _ #| |__ __ _ ___| |__ _ __ _ __ ___ / _(_) | ___ #| '_ \ / _` / __| '_ \ | '_ \| '__/ _ \| |_| | |/ _ \ #| |_) | (_| \__ \ | | | | |_) | | | (_) | _| | | __/ #|_.__/ \__,_|___/_| |_|____| .__/|_| \___/|_| |_|_|\___| # |_____|_| #Runs on log in #your $PATH env variable is a list of all your directories from which you can run commands without giving the whole location #export PATH="$PATH:$HOME/.scripts" # Setting up default applications export EDITOR="vim" export TERMINAL="st" export BROWSER="brave" export READER="zathura" [[ -f ~/.bashrc ]] && . ~/.bashrc #if tty -> tty1 then upon login execute/run the X graphical server if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then exec startx fi #Switch escape and Caps Lock #sudo -n loadkeys ~/.scripts/ttymaps.kmap 2>/dev/null # Load powerline-go prompt function global:prompt { $pwd = $ExecutionContext.SessionState.Path.CurrentLocation $startInfo = New-Object System.Diagnostics.ProcessStartInfo $startInfo.FileName = "powerline-go" $startInfo.Arguments = "-shell bare" $startInfo.Environment["TERM"] = "xterm-256color" $startInfo.CreateNoWindow = $true $startInfo.StandardOutputEncoding = [System.Text.Encoding]::UTF8 $startInfo.RedirectStandardOutput = $true $startInfo.UseShellExecute = $false $startInfo.WorkingDirectory = $pwd $process = New-Object System.Diagnostics.Process $process.StartInfo = $startInfo $process.Start() | Out-Null $standardOut = $process.StandardOutput.ReadToEnd() $process.WaitForExit() $standardOut }